Results 1 to 3 of 3

Thread: shwow........

  1. #1
    Zambi
    Guest
    How do i show a window? what function do i use.

  2. #2
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Lightbulb try this

    windowname.show

    example:

    form2.show
    Matt

  3. #3
    Member PatrickCorgan's Avatar
    Join Date
    Feb 2001
    Location
    Vashon Island, WA, USA
    Posts
    39
    If you want to show a window that your app doesn't own, use the ShowWindow API function

    Code:
    Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    Const SW_SHOW = 5
    
    Sub Command1_click()
     result = ShowWindow(WindowToShow.hWnd, SW_SHOW)
    End Sub
    That should work.
    -Patrick
    Visual Basic 6 SP5
    Master Programmer Wannabe

    Check out the API-Guide for all your API needs!

    --Soli Deo Gloria--

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