ThePentiumGuy Posted June 15, 2003 Posted June 15, 2003 in vb.NET, im trying to close form1 and open form2 under button1.click Me.Close but there is no: form2.open or form2.show its odd.. i tried form2.activeform.show but it gives an error !? this is weird Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
ThePentiumGuy Posted June 15, 2003 Author Posted June 15, 2003 i added a form by right clicking form1 in the solution explorer and add|add windows form i looked at other replies and they said, form2.show me.hide but THAT Doesnt work!! Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
ThePentiumGuy Posted June 15, 2003 Author Posted June 15, 2003 for me, there is no form2.show.. its odd.. check this code out under form1's button1.click _____________________ form1.activeform.hide form2.activeform.show ____________________ This doesnt show form2.... i dunno what they did in .NET but its odd... now i have to do this project in vb6 ?!? Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Shims Posted June 15, 2003 Posted June 15, 2003 http://www.xtremedotnettalk.com/showthread.php?threadid=73170 same topic my friend, check it out. Quote Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
iebidan Posted June 16, 2003 Posted June 16, 2003 But anyway... now in VB.NET everything is treated as an object, so you need to create an instance of the object first Dim xx as Form1 = New Form1 or Dim xx as New Form1 Then you can call it xx.Show() Quote Fat kids are harder to kidnap
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.