Results 1 to 6 of 6

Thread: *resolvage* form order

  1. #1

    Thread Starter
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609

    *resolvage* form order

    Ok so i have a form called form (4)
    I need that to be the first form that appears - how?
    used to know how to do this one
    Last edited by evexa; Jul 21st, 2003 at 11:05 AM.
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    I take it you load all forms at the same time then wanna make a form at the front?
    VB Code:
    1. Form4.ZOrder
    Will bring it to the front...OR
    VB Code:
    1. Private Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Long) As Long
    2.  
    3. 'This is used in the following way:
    4. SetForegroundWindow Form4.hWnd
    Do either of those help...

  3. #3

    Thread Starter
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609
    Sorry I didnt explain properly.
    When the program starts up i want form4 (only) to be the one shown.
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Errrrr...Either right click on Project, in the project properties window and change Form4 to be the startup object, or set Sub Main to be the startup object and add:
    VB Code:
    1. Sub Main
    2.    Load Form4
    3.    Form4.Show
    4. End Sub
    into a module...

    Woka

  5. #5

    Thread Starter
    Fanatic Member evexa's Avatar
    Join Date
    Apr 2003
    Location
    USA
    Posts
    609
    perfect - cheers woka! xx
    Trust no one

    ----------------------------------------
    http://www.eccentrix.com/members/xeaudrey/exanegotium.html
    http://www.eccentrix.com/members/xeaudrey/

  6. #6

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