Advertisement

03.10.2008 at 02:31PM PDT, ID: 23230044
[x]
Attachment Details

Get a Value from Combo Box in VB.NET Winforms

Asked by intikhabk in Visual Studio, .Net Editors & IDEs

Tags:

I have a Winforms application and using the code below to populate combo box

        Dim dt As New DataTable
        dt.Columns.Add(New DataColumn("Text", GetType(String)))
        dt.Columns.Add(New DataColumn("Value", GetType(String)))

        Dim dr As DataRow
        dr = dt.NewRow
        dr.Item("Text") = "Rocky"
        dr.Item("Value") = "11"
        dt.Rows.Add(dr)

        cmbProviders.DataSource = dt
        cmbProviders.DisplayMember = "Text"
        cmbProviders.ValueMember = "Value"

How do I get the value from the combo box on some button clickStart Free Trial
[+][-]03.10.2008 at 02:44PM PDT, ID: 21090751

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, .Net Editors & IDEs
Tags: VB.NET Winforms
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628