|
-
Jan 31st, 2000, 11:58 PM
#1
Thread Starter
New Member
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).]
-
Feb 1st, 2000, 04:51 AM
#2
Hyperactive Member
set its visible property to false.
form1.visible = false
------------------
cintel rules 
www.cintelsoftware.co.uk
-
Feb 2nd, 2000, 07:26 PM
#3
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|