Description: Use windowless transparent control, the advantage is control is not inherited from the window class, you can save some memory resources, the difficulty is the mouse control and coordinate calculation, the disadvantage is not directly respond to keyboard events. Also, note that in the Paint event, the coordinates are from (0,0), while in other places, the coordinates are relative to the container. The disadvantage is that the design, you can not use the mouse to click on the controls (only use the keyboard to move), MSDN, Microsoft also says that this is a BUG, but has yet to be resolved.
Well, I do not say nonsense, open VB6, create a new "Standard EXE", and then add a user control, the control s BackStyle property is set to "transparent", the Windowless property to "True", then I code copy the past, a nice transparent floating button is complete. Users can also set the Caption property and further beautify the Picture property of the control. If incomprehension, and I can cont
To Search:
File list (Check if you may need any files):
Form1.frm
MSSCCPRJ.SCC
Project1.vbp