SetLayeredWindowAttributes( hwnd, $00 , Byte(.5), LWA_COLORKEY)
Are you trying to do it on the default graphics window? If so thats not going to work, the way the canvas on the window is drawn all you will see is a black square.