Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accepting a parameter when the EXE starts
Message
From
04/01/2005 20:17:25
 
 
To
03/01/2005 16:29:41
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00973920
Message ID:
00974256
Views:
23
>This might work better if you add a new class to your project and put the Function Main in that class. Then mark this new class as your start up object instead of your form.

This is working:
Module Module1

    Sub Main(ByVal CmdArgs() As String)
        Dim loForm As New Form1

        ' See if we have a parameter
        If CmdArgs.Length > 0 Then

            ' If we are in auto mode
            If UCase(CmdArgs(0)) = "/AUTO" Then
                loForm.llAuto = True
            End If

        End If

        loForm.ShowDialog()
    End Sub

End Module
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform