Click here to Skip to main content
15,898,819 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more: , +
I have a project that is a hospital management system.

There we have a problem: When we open a form it takes time and the form flickers

I have double buffered the form, but it doesn't seem to solve the flickering problem

I'm using vs 2008 (C# and sql server 2005 as backend)

private void frm_registration_Load(object sender, EventArgs e)
{


    Frm_Patientsearch psearch = new Frm_Patientsearch();
    psearch.registration11 = this;


    dataGridView1.Rows.Add(1);

    fillnewreglistview();
    newpatients();
    oldpatients();
    totalnewcollection();
    totaloldcollection();
}
Posted
Updated 26-May-10 1:19am
v5
Comments
Johnny J. 26-May-10 4:52am    
Reason for my vote of 2
Missing information makes it impossible to answer...
Johnny J. 26-May-10 7:39am    
OK, so you added your load code. That's good, but still not possible to say anything as you are calling a lot of other methods from that. The problem could be in any of those

fillnewreglistview();
newpatients();
oldpatients();
totalnewcollection();
totaloldcollection();

1 solution

What are you doing in the Load event?

Are you e.g. calling this.Invalidate() or any paint handlers?

It would be good if you could show us the Load event code, otherwise it's very hard to come up with a guess (and it will be a guess at best)...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900