Results 1 to 7 of 7

Thread: Working with picture box question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Location
    Ohio
    Posts
    172

    Working with picture box question

    Ok everyone I have a quick question I have 10 picture boxes 5 on left side 5 on right side of screen and basically I would like for when I click on lets say picture box 1 it will display content in the center of the application. Where would I start to add the content as well? Would I have to create a separate form to be able to do this?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Working with picture box question

    Can you define "content"? It's a bit of a vague term.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Location
    Ohio
    Posts
    172

    Re: Working with picture box question

    Quote Originally Posted by jmcilhinney View Post
    Can you define "content"? It's a bit of a vague term.
    Basically if I click on picture box 1 it would display all of the settings for it in the center of the screen but I would not want it to open up in a new form just display in the white area in the center of my screen(I Have a grey area on left and right sides with the picture boxes over them and then the center white for the content for when the picture box is clicked). But my question is how would I get it to where I could set this up in this manner?
    Last edited by dbhoward20; Nov 17th, 2011 at 09:02 AM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Working with picture box question

    It seems like you're trying to complicate something that's quite simple. Just put the appropriate controls on your form. Handle the Click event of the PictureBoxes and then populate the other controls with the appropriate data.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Location
    Ohio
    Posts
    172

    Re: Working with picture box question

    Well more detailed I have one picture box which has a picture of settings like gears and basically if I was to click on that how would I display the settings to the center of the screen but not in a separate form that pops up. For the settings to display in the center white area on the same form what would i have to create for it to display the settings I create would I use some kind of container?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Location
    Ohio
    Posts
    172

    Re: Working with picture box question

    Quote Originally Posted by jmcilhinney View Post
    It seems like you're trying to complicate something that's quite simple. Just put the appropriate controls on your form. Handle the Click event of the PictureBoxes and then populate the other controls with the appropriate data.
    Well what I mean is let's say I clicked the settings picturebox I would want it to display the content in the center area on the same form then once I click another picture box it would make the settings content go away and show that picture box content.

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Working with picture box question

    You would just put the appropriate controls on the form, as I have already said. If you want to display text in a Label then you add a Label. If you want something else then you add something else. As I said, you appear to be trying to complicate something that is very simple. All the stuff about Pictureboxes and areas of the form is irrelevant to display data to the user.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width