quote:
Originally posted by pillowmurder
very simple to reload a form.
use another form, in it have this code execute either by load or another objects method.
form1.close() 'form you want reloaded closes
form1.visible = true 'form you want reloaded opens
form2.close() 'form that did the reload closes
yours,
PM
This shouldn't work in VB 2008, because forms are now stored as classes rather than objects, so form1 is the class.
What you would be better off doing, is making a module, and using Sub Main and having a global in the module called form1Instance, code like this:
Visual Basic code:
Dim form1Instance As Form1
Sub Main
form1Instance = new Form1
form1Instance.Show()
End Sub
Sub Reset
form1Instance.close()
form1Instance.show()
End Sub
To Reset the form, call Module1.Reset. At least... it should work.