EDN Admin
Well-known member
Hello,
I have a splash screen as my main form: <font size=2>
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2><summary>
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> The main entry point for the application.
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2></summary>
</font><font size=2>
[</font><font color="#008080" size=2>STAThread</font><font size=2>]
</font><font color="#0000ff" size=2>static</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> Main()
</font><font size=2>{
</font><font color="#008080" size=2>Application</font><font size=2>.EnableVisualStyles();
</font><font color="#008080" size=2>Application</font><font size=2>.SetCompatibleTextRenderingDefault(</font><font color="#0000ff" size=2>false</font><font size=2>);
</font><font color="#008080" size=2>Application</font><font size=2>.Run(</font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>SplashForm</font><font size=2>());
</font><font size=2>}
And I want to dispose it after loading my main form. How can do that?
When I do this.Dispose() the whole application is closing!
TIA. </font>
View the full article
I have a splash screen as my main form: <font size=2>
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2><summary>
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> The main entry point for the application.
</font><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2></summary>
</font><font size=2>
[</font><font color="#008080" size=2>STAThread</font><font size=2>]
</font><font color="#0000ff" size=2>static</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> Main()
</font><font size=2>{
</font><font color="#008080" size=2>Application</font><font size=2>.EnableVisualStyles();
</font><font color="#008080" size=2>Application</font><font size=2>.SetCompatibleTextRenderingDefault(</font><font color="#0000ff" size=2>false</font><font size=2>);
</font><font color="#008080" size=2>Application</font><font size=2>.Run(</font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>SplashForm</font><font size=2>());
</font><font size=2>}
And I want to dispose it after loading my main form. How can do that?
When I do this.Dispose() the whole application is closing!
TIA. </font>
View the full article