VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

how to add new form runtime in vb 2005 Rate Topic: -----

#1 poojanavya  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-August 08


Dream Kudos: 0

Share |

how to add new form runtime in vb 2005

Post icon  Posted 24 August 2008 - 07:23 PM

how to add new form at runtime in vb 2005?
Was This Post Helpful? 0
  • +
  • -


#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • Icon

Reputation: 1336
  • View blog
  • Posts: 8,175
  • Joined: 18-April 07


Dream Kudos: 0

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

Re: how to add new form runtime in vb 2005

Posted 24 August 2008 - 09:55 PM

In an event just add two lines of code...

' Create a new form variable called "newForm" and then call its show method
' to actually show the form.
Dim newForm as Form = New Form()
newForm.Show()



This code creates an instance of a new form and then shows it during runtime. Simple no?

Enjoy!

"At DIC we be new form creating and showing ninjas... we also create chaos and show anarchy. That is just what we do." :snap:
Was This Post Helpful? 1



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users