Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWindows service problem accessing network share Pin
Member 116497710-Jun-04 6:02
Member 116497710-Jun-04 6:02 
GeneralRe: Windows service problem accessing network share Pin
Dave Kreskowiak10-Jun-04 6:27
mveDave Kreskowiak10-Jun-04 6:27 
GeneralSimple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 6:02
dotnet_cpp10-Jun-04 6:02 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 6:29
mveDave Kreskowiak10-Jun-04 6:29 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 7:01
dotnet_cpp10-Jun-04 7:01 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 7:27
mveDave Kreskowiak10-Jun-04 7:27 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 8:13
dotnet_cpp10-Jun-04 8:13 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 8:26
mveDave Kreskowiak10-Jun-04 8:26 
Don't check for the status of the Selected item. I take it your supporting only one selected item at a time. So don't check for the Selected property, you don't need it. Just use this:
Private Sub DropDownList1_SelectedIndexChanged( _
        ByVal sender As System.Object, ByVal e As System.EventArgs) _
        Handles DropDownList1.SelectedIndexChanged
 
    ' This will check to see if an Item is really selected...
    If Not DropDownList1.SelectedItem Is Nothing Then
        Label3.Text = DropDownList1.SelectedItem.Text
    End If
End Sub

If the event that more than one item is selected, this code will return the selected item with the lowest index in the DropDownList Items collection.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 8:49
dotnet_cpp10-Jun-04 8:49 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 9:00
mveDave Kreskowiak10-Jun-04 9:00 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 11:06
dotnet_cpp10-Jun-04 11:06 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 11:38
mveDave Kreskowiak10-Jun-04 11:38 
GeneralVBA/Excel - Charting question Pin
Jon G10-Jun-04 5:10
Jon G10-Jun-04 5:10 
GeneralRe: VBA/Excel - Charting question Pin
Jon G10-Jun-04 5:25
Jon G10-Jun-04 5:25 
Questionsqldataadapter? Pin
ymohd_22210-Jun-04 3:20
ymohd_22210-Jun-04 3:20 
AnswerRe: sqldataadapter? Pin
Dave Kreskowiak10-Jun-04 4:11
mveDave Kreskowiak10-Jun-04 4:11 
AnswerRe: sqldataadapter? Pin
VenkatFor.NET10-Jun-04 11:01
VenkatFor.NET10-Jun-04 11:01 
GeneralTreeView --> Move Nodes Pin
Brad Fackrell10-Jun-04 3:04
Brad Fackrell10-Jun-04 3:04 
GeneralInput Data From Data Grid Pin
Jakarta_Project10-Jun-04 1:17
Jakarta_Project10-Jun-04 1:17 
GeneralRe: Input Data From Data Grid Pin
Dave Kreskowiak10-Jun-04 3:50
mveDave Kreskowiak10-Jun-04 3:50 
GeneralRe: Input Data From Data Grid Pin
tramdtt10-Jun-04 20:55
tramdtt10-Jun-04 20:55 
Generalsystem analysis and design Pin
len_ems9-Jun-04 22:36
len_ems9-Jun-04 22:36 
GeneralRe: system analysis and design Pin
RichardGrimmer9-Jun-04 23:14
RichardGrimmer9-Jun-04 23:14 
GeneralRe: system analysis and design Pin
Anonymous14-Jun-04 18:26
Anonymous14-Jun-04 18:26 
Generalbyte length restriction in text box Pin
Rohitse9-Jun-04 22:14
Rohitse9-Jun-04 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.