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 Postyou can use Case statement in comboboxselectedindexchanged event
Jump to PostSince "new" to vb.net, see if this helps.
1 ListBox, 1 PictureBox
...and a Folder with a few images.Public Class Form1 '// set this Folder to your ImagesFolder. Private myCoolImgsFolder …
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.