Michaelk
Well-known member
Hi, i can't seem to work out how i can close Form1, from Form2. I've been hiding the forms, but this isn't very effective.
For example, Once Form1 is complete, it closes itself, and loads Form2.
I am using:
But with that, i still have Form1 open in the background.
I'd imagine the answer is fairly basic.
Thanks.
For example, Once Form1 is complete, it closes itself, and loads Form2.
I am using:
VB.NET:
[size=2][/size][size=2][color=#0000ff]Me[/color][/size][size=2].Hide()[/size]
[size=2][color=#0000ff]Dim[/color][/size][size=2] Form2 [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]New[/color][/size][size=2] Form2[/size]
[size=2]Form2.ShowDialog()
[/size]
I'd imagine the answer is fairly basic.
Thanks.