Click here to Skip to main content
15,899,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to refresh the Windows Form by clicking the Button. All that tools in the Windows form get Refreshed and get the Values from Database.
Posted
Updated 5-Sep-13 0:50am
v2
Comments
Marvin Ma 5-Sep-13 6:41am    
Have you done any work yet?

Create one function, something like RefreshDataViewers(), with the code you need for updating what the controls show. Then you just have to put one button in your form and call that function (the one named RefreshDataViewers()) as part of its Click event handler.
 
Share this answer
 
Call the Invalidate() method[^].
 
Share this answer
 
this.Refresh();

Add above line inside button click event.Refer this link
http://stackoverflow.com/questions/4685580/form-reloading-in-c-net[^]
Hope this help.
 
Share this answer
 
v2

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