refresh/reload my form

  • Thread starter Thread starter perceval
  • Start date Start date
P

perceval

I want to reload my form when there is a click in a button (for random
gif)

and i use this :

Dim menu As New menu
menu.Show()
Me.Hide()

I think there is a more better way to reload a form...

can you help me
 
Hi Perceval,

You can use Invalidate() to cause your form to be redrawn. Or you can paint the picture directly when you want it. It kind of depends on how you do the gif showing procedure.

Happy coding!
Morten Wennevik [C# MVP]
 
Call Invalidate() on every Form. Of course you need a reference for that. Still not sure what you are trying to do.

Happy coding!
Morten Wennevik [C# MVP]
 
* perceval said:
I want to reload my form when there is a click in a button (for random
gif)

What exactly would you expect? Resetting all controls?
 
frmMyName(Me, New System.EventArgs()) should reload your form and reset
everything. Be carefull if you have any updating to do as this will not
check for that.

--
Brian P. Hammer
I want to reload my form when there is a click in a button (for random
gif)

and i use this :

Dim menu As New menu
menu.Show()
Me.Hide()

I think there is a more better way to reload a form...

can you help me
 
Back
Top