hi, i'm new to vb.net.is it possible to link item in drop down list to image? for example if i click "computer" in the drop down list, the image of the computer will appear. sorry if my question sounds silly. i'm really a newbie in vb.thanks for ur help.
tenshi
0
Newbie Poster
Recommended Answers
Jump to Postyes it is...
u have to use the "selected index change" event for ur combobox..
then you can disappear and reappear any image for example :
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged if combobox1.selecteditem.tostring = "Computer" then picturebox1.visible=false else …
Jump to Postyou can use Case statement in comboboxselectedindexchanged event
Jump to PostJust Because
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim FolderPath As String = My.Computer.FileSystem.SpecialDirectories.Desktop & "\New Folder" If IO.Directory.Exists(FolderPath) Then ComboBox1.DisplayMember = "Name" 'Filename with extension ComboBox1.ValueMember = "FullName" 'Full File Name ComboBox1.FormattingEnabled = True 'Set data source to all files …
All 9 Replies
bilal_fazlani
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
codeorder
197
Nearly a Posting Virtuoso

Unhnd_Exception
codeorder
commented:
i'm a keep an eye on this one :D;nicely executed:)
+12
tenshi
0
Newbie Poster
tenshi
0
Newbie Poster
tenshi
0
Newbie Poster
tenshi
0
Newbie Poster
tenshi
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.