-1

I'm trying to create a text-based game where the user selects buttons and that will lead to other parts of the game, right now I need the program to close the old Form and the new form must be placed in where the old one was.

Joshua
  • 17
  • 1
  • 1
  • 5
  • you'll only get extremely limited help unless you provide more details and CODE YOU'VE TRIED. http://www.homeandlearn.co.uk/NET/nets13p3.html – 5uperdan Feb 04 '14 at 12:21

2 Answers2

1

You can try something like this :

Dim form2 As New Form2
'set start position to manual
form2.StartPosition = FormStartPosition.Manual
'set form2 location the same as current form
form2.DesktopLocation = Me.DesktopLocation
form2.Show()
Me.Close()
har07
  • 88,338
  • 12
  • 84
  • 137
0

try this...

me.close()

Dim SecondForm As New frmSecond

SecondForm.Show()
pankeel
  • 1,138
  • 1
  • 10
  • 22