User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,689 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,427 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 637 | Replies: 3
Reply
Join Date: Apr 2008
Posts: 2
Reputation: Jen24 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jen24 Jen24 is offline Offline
Newbie Poster

PictureBox Array Issue

  #1  
Apr 10th, 2008
Hey everyone, I'm a brand new member who is desperately trying to pass a class in VB.Net. My problem is that I need to create a program that allows the user to select a name from a ComboBox, this selection will trigger an image change in a PictureBox. I've set up an array for the ComboBox, but I'm having difficulty creating one for a PictureBox. If anyone could please try to offer a suggestion it would be greatly appreciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 52
Reputation: bwkeller is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
bwkeller bwkeller is offline Offline
Junior Poster in Training

Re: PictureBox Array Issue

  #2  
Apr 11th, 2008
I'm confused as to the need for another array. If you have an array of names that you used to populate the combobox, just tack on a field that has the name of the image you want displayed in the picturebox, then use a picturebox.Load to perform the function. Am I missing something?
Reply With Quote  
Join Date: Apr 2008
Posts: 2
Reputation: Jen24 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jen24 Jen24 is offline Offline
Newbie Poster

Re: PictureBox Array Issue

  #3  
Apr 11th, 2008
Sorry for any confusion that I may have caused. Luckily I figured out what I needed to do. I misunderstood in class...I didn't need an array of picturebox controls, but rather an array of strings with my jpg file names, so that selecting an item in the combobox would access the array of file names.

Thanks for the patience, I'm learning slowly but surely.
Reply With Quote  
Join Date: Feb 2008
Posts: 52
Reputation: bwkeller is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
bwkeller bwkeller is offline Offline
Junior Poster in Training

Re: PictureBox Array Issue

  #4  
Apr 11th, 2008
Like I said...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 5:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC