Application.Run(new Form1()); Error Code
-
Ok, I was just debugging my little web browser app I was creating and before Form1 even loads, I get the litte yellow highlight over this text:
Application.Run(new Form1());
With this message: "Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead." This is in Program.cs, I am new to C# and so do not really understand what the error is, I haven't changed anything in Program.cs atall, just the regular Form.cs Can somebody please tell me what the hell it is trying to tell me? Thanks, Any reply is appreciated. -
Ok, I was just debugging my little web browser app I was creating and before Form1 even loads, I get the litte yellow highlight over this text:
Application.Run(new Form1());
With this message: "Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead." This is in Program.cs, I am new to C# and so do not really understand what the error is, I haven't changed anything in Program.cs atall, just the regular Form.cs Can somebody please tell me what the hell it is trying to tell me? Thanks, Any reply is appreciated.Is your Form1 attempting to show another form somewhere using Application.Run() ??
using System.Beer;
-
Is your Form1 attempting to show another form somewhere using Application.Run() ??
using System.Beer;