chuawenching Posted July 28, 2003 Posted July 28, 2003 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 Quote
Leaders dynamic_sysop Posted July 28, 2003 Leaders Posted July 28, 2003 why not use a Sub_Main to start your app , instead of Form1? then Form1 will never show unless you tell it to :) Quote
chuawenching Posted July 28, 2003 Author Posted July 28, 2003 Sub_Main() Where to get that? I only see static void Main() Regards, Chua Wen Ching :p Quote
*Experts* mutant Posted July 28, 2003 *Experts* Posted July 28, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.