Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help with printDocument and printPreviewControl Pin
Jacob Dixon9-Mar-08 12:34
Jacob Dixon9-Mar-08 12:34 
GeneralRe: Help with printDocument and printPreviewControl Pin
bhavik s25-May-11 1:27
bhavik s25-May-11 1:27 
GeneralChannels Pin
ytubis9-Mar-08 7:36
ytubis9-Mar-08 7:36 
GeneralRe: Channels Pin
Luc Pattyn9-Mar-08 8:27
sitebuilderLuc Pattyn9-Mar-08 8:27 
GeneralRe: Channels Pin
ytubis9-Mar-08 9:51
ytubis9-Mar-08 9:51 
GeneralRe: Channels Pin
Luc Pattyn9-Mar-08 10:18
sitebuilderLuc Pattyn9-Mar-08 10:18 
GeneralRe: Channels Pin
Christian Graus9-Mar-08 11:05
protectorChristian Graus9-Mar-08 11:05 
GeneralSplash Screen Dispose Pin
gmhanna9-Mar-08 7:14
gmhanna9-Mar-08 7:14 
During the constructor I display a splash screen with the following code. This screen is boardless and also has no title bar. What is happening is the splash screen displays center screen followed by the main dialog screen behind the splash screen. The splash screen although is disposed, stays displayed until the main dialog screen gets a WM_PAINT (caused by clicking on the screen). This is written in C# and .NET.

How do I get the main screen to repaint after my splash screen is gone without having to click within the dialog? Am I missing something...

<br />
Thread th = new Thread(new ThreadStart(DoSplash));<br />
th.Start();<br />
Thread.Sleep(3000);<br />
th.Abort();<br />
Thread.Sleep(2000);<br />
...<br />
private void DoSplash()<br />
{<br />
    Splash  sp = null;<br />
    try<br />
    {<br />
        sp = new Splash();<br />
        sp.ShowDialog();<br />
    }<br />
<br />
    catch (ThreadAbortException)<br />
    {<br />
        sp.Dispose();<br />
    }               <br />
}<br />


Thank you,

Glenn

GeneralRe: Splash Screen Dispose Pin
Judah Gabriel Himango9-Mar-08 11:02
sponsorJudah Gabriel Himango9-Mar-08 11:02 
GeneralRe: Splash Screen Dispose Pin
gmhanna16-Mar-08 6:36
gmhanna16-Mar-08 6:36 
QuestionOpening files [modified] Pin
nike_arh9-Mar-08 7:12
nike_arh9-Mar-08 7:12 
GeneralRe: Opening files Pin
Giorgi Dalakishvili9-Mar-08 9:29
mentorGiorgi Dalakishvili9-Mar-08 9:29 
GeneralSome questions regarding ListView fundamental behaviour Pin
eyalbi0079-Mar-08 6:55
eyalbi0079-Mar-08 6:55 
GeneralRe: Some questions regarding ListView fundamental behaviour Pin
LongRange.Shooter10-Mar-08 9:22
LongRange.Shooter10-Mar-08 9:22 
QuestionRe: Some questions regarding ListView fundamental behaviour [modified] Pin
eyalbi00710-Mar-08 21:59
eyalbi00710-Mar-08 21:59 
GeneralRe: Some questions regarding ListView fundamental behaviour Pin
LongRange.Shooter11-Mar-08 16:32
LongRange.Shooter11-Mar-08 16:32 
GeneralRe: Some questions regarding ListView fundamental behaviour Pin
eyalbi00711-Mar-08 22:06
eyalbi00711-Mar-08 22:06 
QuestionDictionary Sorting ??? Pin
Jammer9-Mar-08 6:44
Jammer9-Mar-08 6:44 
AnswerRe: Dictionary Sorting ??? Pin
Professor Sharada Ulhas9-Mar-08 10:57
Professor Sharada Ulhas9-Mar-08 10:57 
GeneralRe: Dictionary Sorting ??? Pin
Jammer9-Mar-08 11:29
Jammer9-Mar-08 11:29 
GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 11:31
sponsorJudah Gabriel Himango10-Mar-08 11:31 
GeneralRe: Dictionary Sorting ??? Pin
Jammer9-Mar-08 12:46
Jammer9-Mar-08 12:46 
GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 7:17
sponsorJudah Gabriel Himango10-Mar-08 7:17 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 10:17
Jammer10-Mar-08 10:17 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 11:10
Jammer10-Mar-08 11:10 

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.