Question

  Asked: Apr 22 2008   5:38 PM GMT
  Asked by: Rpguthrie3


Opening Windows Form using ComboBox in VB.NET


VB.NET 2005, Visual Basic .NET, Visual Studio 2005, Windows Forms, VB.NET, ListBox, ComboBox

How can I program a List Box or Combo Box control to open a Windows Form in VB.NET 2005 using the selected value of the control?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Add code to the OnChange event. Setup the code to declare a new variable and set the variable = to the form you want to open
then open the form.

Dim t As Form
t = YourForm
t.Show()
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development.

Looking for relevant Development Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register