You have the constuctor for the form but you need to define starting point of an application. It can only be defined by declaring Main sub. If it is not already defined, you will have to define it. Here is an example of Hello World app.
Module Hello
Sub Main()
MsgBox("Hello World!") ' Display message on computer screen.
End Sub
End Module
>I tried modifying the constructor for the form. There was no syntax error for modifying the constructor, but when I built the app, I received an error stating that no Main() procedure was found.
>
>
>
>>In C#, main() is an entry point for the application where you receive all your parameters. I think VB.NET has Main procedure that you can use.
>>
>>>I'm looking for a way to pass a parameter to a VB.net exe from the windows run command.
>>>
>>>Using VFP, I could create an exe which could be executed from the run command as follows: c:\testexe.exe "1"
>>>
>>>the "1" string would be passed to the executable through a parameter statement in the startup .prg file
>>>
>>>I have created a VB.net windows exe which uses the VB form as the startup file. Is there a way to pass a parameter to the form at application startup?
- Jayesh