Results 1 to 3 of 3

Thread: invisible forms

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    haifa,israel
    Posts
    12

    Post

    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).]

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    set its visible property to false.

    form1.visible = false


    ------------------
    cintel rules
    www.cintelsoftware.co.uk

  3. #3
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    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
  •  



Click Here to Expand Forum to Full Width