Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
GeneralWindows Forms MDI C# One ParentForm and a lot of ChildrenForms Pin
Brunelleschi5-Jul-05 1:01
Brunelleschi5-Jul-05 1:01 
GeneralRe: Windows Forms MDI C# One ParentForm and a lot of ChildrenForms Pin
Judah Gabriel Himango5-Jul-05 9:40
sponsorJudah Gabriel Himango5-Jul-05 9:40 
GeneralMaximize a form on dual screen Pin
Boltmelots5-Jul-05 0:49
Boltmelots5-Jul-05 0:49 
GeneralRe: Maximize a form on dual screen Pin
Guffa5-Jul-05 4:02
Guffa5-Jul-05 4:02 
GeneralGrading MultipleQuestions Exams System Pin
mhmo5-Jul-05 0:29
mhmo5-Jul-05 0:29 
GeneralRe: Grading MultipleQuestions Exams System Pin
LongRange.Shooter6-Jul-05 9:59
LongRange.Shooter6-Jul-05 9:59 
GeneralCross-thread events Pin
1nsp1r3d5-Jul-05 0:21
1nsp1r3d5-Jul-05 0:21 
GeneralRe: Cross-thread events Pin
Judah Gabriel Himango5-Jul-05 4:46
sponsorJudah Gabriel Himango5-Jul-05 4:46 
Why use 2 threads? You're introducing complexity unnecessarily.

In the constructor for your main window, I assume you have the InitializeComponent() call that actually initializes your main window. Change that constructor to

public MainWindow()
{
    // Show the splash screen.
    SplashWindow splash = new SplashWindow();
    splash.Show(); // Use Show() instead of ShowDialog, as ShowDialog is blocking, whereas Show() returns immediately.

    // Now that we've shown the splash, start loading our main window.
    InitializeComponent();
} 


And when your MainWindow finishes loading (override the OnLoad method or create an OnLoad event handler), you can set the visibility of both forms synchronously.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango


GeneralRe: Cross-thread events Pin
1nsp1r3d5-Jul-05 7:09
1nsp1r3d5-Jul-05 7:09 
GeneralRe: Cross-thread events Pin
Judah Gabriel Himango5-Jul-05 9:35
sponsorJudah Gabriel Himango5-Jul-05 9:35 
QuestionHow do i add an item to a combo box? Pin
Anthony Mushrow5-Jul-05 0:13
professionalAnthony Mushrow5-Jul-05 0:13 
AnswerRe: How do i add an item to a combo box? Pin
Christian Graus5-Jul-05 0:18
protectorChristian Graus5-Jul-05 0:18 
GeneralCreate a windows service to log user logins Pin
aocraft4-Jul-05 23:49
aocraft4-Jul-05 23:49 
GeneralRe: Create a windows service to log user logins Pin
Dave Kreskowiak5-Jul-05 1:31
mveDave Kreskowiak5-Jul-05 1:31 
GeneralRe: Create a windows service to log user logins Pin
aocraft5-Jul-05 14:58
aocraft5-Jul-05 14:58 
GeneralUsing CVS to manage Visual Studio.NET solution Pin
scchan19844-Jul-05 22:52
scchan19844-Jul-05 22:52 
GeneralRe: Using CVS to manage Visual Studio.NET solution Pin
Christian Graus4-Jul-05 23:50
protectorChristian Graus4-Jul-05 23:50 
GeneralMonitor User Login and Logoff via service xp Pin
aocraft4-Jul-05 21:33
aocraft4-Jul-05 21:33 
GeneralRe: Monitor User Login and Logoff via service xp Pin
Alex Korchemniy4-Jul-05 21:58
Alex Korchemniy4-Jul-05 21:58 
GeneralRe: Monitor User Login and Logoff via service xp Pin
aocraft4-Jul-05 22:04
aocraft4-Jul-05 22:04 
GeneralRe: Monitor User Login and Logoff via service xp Pin
aocraft4-Jul-05 22:34
aocraft4-Jul-05 22:34 
GeneralSMTP Sending Error ! Pin
xironix4-Jul-05 19:48
sussxironix4-Jul-05 19:48 
GeneralRe: SMTP Sending Error ! Pin
S. Senthil Kumar4-Jul-05 20:43
S. Senthil Kumar4-Jul-05 20:43 
GeneralRe: SMTP Sending Error ! Pin
Xironix4-Jul-05 22:15
sussXironix4-Jul-05 22:15 
GeneralScribble Notes Problem Pin
Brijesh_Jaiswal4-Jul-05 19:29
Brijesh_Jaiswal4-Jul-05 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.