Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Must have startup form or Sub Main?


Arimil
 Share

Recommended Posts

I edited the source for my game and when I tried to run the server it asked for a registration code, so I deleted the frmSerial and tried to compile the server again but I get "Must have startup form or Sub  Main()".

If anyone could help, it would be appreciated. Thanks

Edit: Resolved
Link to comment
Share on other sites

You have to have a sub-routine called "Sub Main()" somewhere in the source code.

OR

If you want to start-up through forms, you have to set the form through "Properties -> Properties…". To the right of the screen you'll see "Start-up Object". Select the form (or the Main() event) you wish to use. If you selected a form, make sure it has the Form_Load() event.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...