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 a couché sur son écran :
i need to refresh all my forms not only a gif

thx for help

no i want to reload the form like F5 in WebForms
 
* 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top