Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: alpha? Pin
Judah Gabriel Himango5-Jul-05 4:54
sponsorJudah Gabriel Himango5-Jul-05 4:54 
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 
Hi all,

Let me introduce you to the problem which I'm trying to cope with. I'm having two windows forms in 2 threads - one is a splash screen and the other one is the main window. On starting, the splash is visible and the main is hidden. I've written everything to the point where I've to implement signalling the splash that main is ready and closing the splash. What I've tried yesterday is to implement this with timers, so splash has a 100ms timer which checks a property on the mainwindow class and if it's true, then the splash closes itself. But then, how would I synchronise the closing of the splash with setting the main form visibility to true so they happen syncroniously(one after the other). What I've been thinking about is using events, but I'm not sure how to do this in cross-threads windows forms, ie how to design it. Should I have event for the main which is emitted when it's ready and the splash listens for this event? And then it closes itself and emits another signal that's has closed and the main listens for the closing signal of the splash? If so, how would I attach to listening to the signals across the threads? In my Main() function, I create both threads and I've two properties of the EntryPoint class(which contains the main and nothing else) - the splash form and the main form. And I have two methods which are used for the entry point of the the both, which are basically doing:
<br />
Application.Run(this.splashform);<br />

Any advice is greatly appreciated. Thanks for reading.
GeneralRe: Cross-thread events Pin
Judah Gabriel Himango5-Jul-05 4:46
sponsorJudah Gabriel Himango5-Jul-05 4:46 
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 

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.