Click here to Skip to main content
15,879,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a windows form which has to be refreshed automatically using button


C#
private void Refresh_Click(object sender, EventArgs e)
      {
          this.Refresh();
      }
Posted
Updated 23-Nov-12 0:23am
v2
Comments
OriginalGriff 23-Nov-12 6:20am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Master Vinu 23-Nov-12 6:23am    
ow chk .i have tried this but not working
Dominic Abraham 23-Nov-12 6:59am    
Hi
What you are expecting in this.Refresh() ?

1 solution

try :
C#
this.Refresh();
to redraw the contents of the current form or
C#
this.Invalidate()
 
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