PictureBox Array Issue

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 2
Reputation: Jen24 is an unknown quantity at this point 
Solved Threads: 0
Jen24 Jen24 is offline Offline
Newbie Poster

PictureBox Array Issue

 
0
  #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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 52
Reputation: bwkeller is an unknown quantity at this point 
Solved Threads: 6
bwkeller bwkeller is offline Offline
Junior Poster in Training

Re: PictureBox Array Issue

 
0
  #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 Quick reply to this message  
Join Date: Apr 2008
Posts: 2
Reputation: Jen24 is an unknown quantity at this point 
Solved Threads: 0
Jen24 Jen24 is offline Offline
Newbie Poster

Re: PictureBox Array Issue

 
0
  #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 Quick reply to this message  
Join Date: Feb 2008
Posts: 52
Reputation: bwkeller is an unknown quantity at this point 
Solved Threads: 6
bwkeller bwkeller is offline Offline
Junior Poster in Training

Re: PictureBox Array Issue

 
0
  #4
Apr 11th, 2008
Like I said...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC