Using Listbox to change image in Picturebox and text in label!

This is a discussion on Using Listbox to change image in Picturebox and text in label! within the C# Programming forums, part of the General Programming Boards category; Hello! My problem is exactly as it says in the title My goal is to have couple of items in ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    58

    Using Listbox to change image in Picturebox and text in label!

    Hello!

    My problem is exactly as it says in the title
    My goal is to have couple of items in the listbox and when highlighting one item a image in the picturebox should appear, and so on for each item in the listbox.
    I just don't know how to change image depending on selected item in the listbox instantly.
    Also when i highlight item a text in label should be like in highlighted item in listbox.

  2. #2
    Registered User
    Join Date
    Mar 2009
    Location
    england
    Posts
    209
    ListBox.SelectedIndexChanged Event (System.Windows.Forms)

    Use this event to change the contents of the label and picturebox.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] change picture width and height in Static control (no MFC)
    By pc2-brazil in forum Windows Programming
    Replies: 1
    Last Post: 05-05-2008, 01:17 AM
  2. STATIC text label or LABEL in Windows APP - NO MFC!
    By triste in forum Windows Programming
    Replies: 5
    Last Post: 10-25-2004, 11:14 PM
  3. change text
    By Unregistered in forum C Programming
    Replies: 17
    Last Post: 08-23-2002, 08:28 PM
  4. Replies: 1
    Last Post: 07-13-2002, 05:45 PM
  5. Replies: 3
    Last Post: 05-18-2002, 07:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21