Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have designed and developed the screen but on clicking any button page is blinking just like refreshing a page.
Posted
Comments
[no name] 20-Nov-12 0:09am    
Show us your code...
bbirajdar 20-Nov-12 6:52am    
Is your 3 tier issue resolved now?
[no name] 20-Nov-12 6:54am    
ya it solved :) Thanks mate ..
[no name] 20-Nov-12 6:57am    
I did it myself then.. :) anyway thanks for all of your help..
[no name] 20-Nov-12 7:01am    
Hey did you got the solution for this problem
if yes please explain me how?

Hi, I think that the problem could be avoided by using a background worker thread.

BackgroundWorker Threads and Supporting Cancel[^]

This would leave the UI on its original thread and all the work would be done in the background, that way the UI wont hang or be unresponsive.

Also, make sure you don't have any recursive calls to your constructor, because if it causes the form to close and then reopen, this could cause that issue also.
 
Share this answer
 
Comments
bbirajdar 20-Nov-12 6:50am    
So your guess is that this is a Winforms question ??
You can either minimize the page, or change focus to different page.
Hope this can help.

C#
private void button1_Click(object sender, EventArgs e)
      {
          this.WindowState = FormWindowState.Minimized;
      }

private void button2_Click(object sender, EventArgs e)
        {
            Form2 f = new Form2();
            this.Hide();
            f.Show();
        }
 
Share this answer
 
v2
Comments
bbirajdar 20-Nov-12 6:51am    
So your guess is that this is a Winforms question ??

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