Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:22
Geert van Horrik19-Jul-07 3:22 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:24
Martin#19-Jul-07 3:24 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:28
Geert van Horrik19-Jul-07 3:28 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:38
Martin#19-Jul-07 3:38 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:39
Geert van Horrik19-Jul-07 3:39 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 4:01
Geert van Horrik19-Jul-07 4:01 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:13
Martin#19-Jul-07 4:13 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:44
Martin#19-Jul-07 4:44 
Hello Geert,

I just did a little test with the sampleproject of the article I was giving you!
I placed a lot of ListBoxes and ComboBoxes filled with lotts of Items on the Form1.

If you then start the proram, you can see the delay after the splash is closed bevore the Form1 is shown.

I than changed the constructor of SplashAppContext to:
public SplashAppContext(Form mainForm, Form splashForm) : base(splashForm)
{
    this.mainForm = mainForm;
    mainForm.Show();

    splashTimer.Tick += new EventHandler(SplashTimeUp);
    splashTimer.Interval = 2000;
    splashTimer.Enabled = true;
}


And added OnPaint to Form1 like this:
private bool init=true;
protected override void OnPaint(PaintEventArgs e)
{

    base.OnPaint (e);

    if(init)
    {
        init=false;
        this.Hide();
    }
}


After that the Form1 shown very fast.

All the best,

Martin

GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 5:06
Geert van Horrik19-Jul-07 5:06 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 7:02
Martin#19-Jul-07 7:02 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:18
Geert van Horrik19-Jul-07 21:18 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 21:23
Martin#19-Jul-07 21:23 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:35
Geert van Horrik19-Jul-07 21:35 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:47
Geert van Horrik19-Jul-07 21:47 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 21:58
Martin#19-Jul-07 21:58 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:29
sitebuilderLuc Pattyn19-Jul-07 3:29 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:33
Geert van Horrik19-Jul-07 3:33 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:51
sitebuilderLuc Pattyn19-Jul-07 3:51 
GeneralRe: Control updating is slow [modified] Pin
Luc Pattyn19-Jul-07 3:09
sitebuilderLuc Pattyn19-Jul-07 3:09 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:27
Geert van Horrik19-Jul-07 3:27 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:40
sitebuilderLuc Pattyn19-Jul-07 3:40 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:45
sitebuilderLuc Pattyn19-Jul-07 3:45 
QuestionHow to unregister an event Pin
t4ure4n19-Jul-07 1:51
t4ure4n19-Jul-07 1:51 
AnswerRe: How to unregister an event Pin
kubben19-Jul-07 2:00
kubben19-Jul-07 2:00 
AnswerRe: How to unregister an event Pin
Luc Pattyn19-Jul-07 2:01
sitebuilderLuc Pattyn19-Jul-07 2:01 

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.