saharon
Jan 31st, 2000, 10:58 PM
how can I create an invisible form?
not just an invisible form with .visible property, I would like to see the controlls or images which are on the form, but not the form itself
[This message has been edited by saharon (edited 02-01-2000).]
KENNNY
Feb 1st, 2000, 03:51 AM
set its visible property to false.
form1.visible = false
------------------
cintel rules :p
www.cintelsoftware.co.uk
Razzle
Feb 2nd, 2000, 06:26 PM
you can make the Form transparent!
here's some expample:
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_TRANSPARENT = &H20&
Public Const SWP_FRAMECHANGED = &H20
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_SHOWME = SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE
Public Const HWND_NOTOPMOST = -2
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Sub Maketransparent(vForm As Form)
SetWindowLong vForm.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
SetWindowPos vForm.hwnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME
End Sub
Maketransparent should be called in Form_Load
------------------
Razzle
ICQ#: 31429438