Advertisement

05.22.2008 at 08:43AM PDT, ID: 23424846
[x]
Attachment Details

How do I access both the text and the value properties when a user makes a selection from a combobox

Asked by DenaMP in Visual Studio .NET 2005, VB Controls, Microsoft Visual Basic.Net

Here's my code.  The SelectedText comes back blank.
Private Sub cboConsoles_SelectionChangeCommitted(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboConsoles.SelectionChangeCommitted
    GlobalVariables.ConsoleId = cboConsoles.SelectedValue
    GlobalVariables.ConsoleDesc = cboConsoles.SelectedText
Thanks for your help!Start Free Trial
[+][-]05.22.2008 at 10:54AM PDT, ID: 21626041

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 2005, VB Controls, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: AshleyBryant
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.22.2008 at 11:06AM PDT, ID: 21626138

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 07:19AM PDT, ID: 21632332

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628