Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi there.

 

I was writing a problem to call an additional program..

 

the problem is it will load my main form

 

as i code the thing in

 

Form1_Load

 

any idea, i can't remove that form1 from being loaded?

 

I had played with form properties, but still the form will appear!

 

Regards,

Chua Wen Ching :p

  • *Experts*
Posted

Dynamic_Sysop was talking abuot VB.NET. In C# you get the:

static void main()

If you want to remove the form from starting just delete this line from main:

Application.Run(new Form1());

But remeber that you have to start the message loop for the application as without it will exit immediately.

Application.Run();

This will start the message loop for the application.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...