JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
I've always had to do this differently in every version of VB. So could someone please tell me what's the best practice in switching between two forms in the same application now in VB 2005?
I tried the following, but the program crashes if I close one of the forms by clicking the red cross on the form's top right corner and then try to switch again.
Could it be possible to cancel during unloading and hide the form instead?
I tried the following, but the program crashes if I close one of the forms by clicking the red cross on the form's top right corner and then try to switch again.
Visual Basic:
'Switching to form2 from form1
Form2.Show()
Form2.Select()
'Switching to form1 from form2
Form1.Show()
Form1.Select()
Could it be possible to cancel during unloading and hide the form instead?
Last edited: