Results 1 to 2 of 2

Thread: Parameters??!?!

  1. #1

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Post

    Does anybody know how to make parameters to your program. Lets say, if i started my app with
    myapp.exe -max
    it would start maximized.

    ?

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Post

    Private Sub Form_Load()
    Dim MyCmd As String

    MyCmd = Command

    If StrComp(MyCmd,"-max",vbBinaryCompare) <> 0 Then
    End
    Else
    Me.WindowState = vbMaximized
    End If

    End Sub

    Will this help you?

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