Can you exit the application before completing the constructor and upload the main form?
At startup, I have a loading screen that appears before the main form loads. The loading screen is displayed from the designer until the designer completes.
I am doing something similar with an exit screen using a variable between the main form and the exit screen. I have an application exit in the main form if the exit screen returns true.
Finally, should the entire thread / class / loading / configuring the program be started in the main constructor, or am I doing it wrong?
Update:
I mean after program.cs and in the static main
namespace app
{
public partial class app1 : Form
{
public app1()
{
InitializeComponent();
}
- Is the
app1()right place to initialize everything? - ""
app1(), - , .
Adam