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.
?
Printable View
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.
?
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?