Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By jmcilhinney

Thread: Need help with Combo Boxes

  1. #1
    Abz
    Abz is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Aug 2012
    Posts
    3
    Reputation
    0

    Exclamation Need help with Combo Boxes

    Im a beginner in programming and have been trying to work comboboxes and pictureboxes.

    I have been trying to code my program so that when an Item from my combobox is selected, the image in a picturebox changes according to the selection.
    I have looked around and could not find what code I should use. Any help would be greatly appreciated.

    Thanks

  2. #2
    Dunfiddlin's Avatar
    Dunfiddlin is offline VB.NET Forum Master
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2012
    Posts
    253
    Reputation
    31
    I think we'd appreciate some evidence of ...

    trying to code my program
    ... given that I get over 2 million results for basic information on the combobox at the head of which is this ...

    ComboBox.SelectedItem Property (System.Windows.Forms)

    ... which would be more than enough information to get you started.

  3. #3
    Abz
    Abz is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Aug 2012
    Posts
    3
    Reputation
    0
    Yeah I have no actual code. I had no idea where to start with ComboBoxes, total beginner but that link helps.

    Thanks.

  4. #4
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,348
    Reputation
    1543
    If you don't know how ComboBoxes work then there's no point even thinking about the PictureBox. Surely there's loads of information out there on using ComboBoxes so it's hard to believe that you've actually looked very hard. Here for instance:

    Visual Basic .NET for Beginners - Combo Boxes

    Once you've got an idea of how to use a ComboBox and what information you can get from it, then you can think about how to make use of that to work with your PictureBox. That's how programming works. You don't just come up with an idea for an application and "get the code" for that application. You break the implementation down into smaller and smaller pieces and work out how to do each one and then how to fit them together. You'll find that you will fit a few pieces together here and a few there into larger pieces, then you'll fit those larger pieces together into larger pieces still. That goes on until the whole puzzle is put together. As you get more experienced you'll find that more and more of the elementary pieces are things that you have done before, so you can eventually build something completely new while writing almost no new code.
    VBobCat likes this.

  5. #5
    Abz
    Abz is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    Aug 2012
    Posts
    3
    Reputation
    0
    Fair enough, but I managed to figure it out.

    Thanks a bunch guys

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking