Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accepting a parameter when the EXE starts
Message
From
03/01/2005 16:27:44
 
 
To
03/01/2005 16:21:45
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00973920
Message ID:
00973931
Views:
11
>>>Apply the STAThread attribute to the function:
>>>
>>>
>>><STAThread()> Public Shared Function Main(ByVal tcAuto As String)
>>>
>>
>>It doesn't change anything.
>>
>>>Also, this method should be defined in the Startup Form of your applicaiton.
>>
>>The form is the application. That's the only think I have.
>
>In the body of the method create a reference to your form class and execute it:
>
>
>Dim oForm as yourformclass
>oForm.ShowDialog()
>
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.
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Reply
Map
View

Click here to load this message in the networking platform