Options

Another c# query...

nelnel Member Posts: 2,859 ■□□□□□□□□□
...sorry fella's but...


Hi, i have a quick question.

I have a inventory application which displays details in a few txt boxes and i want to add a pictures box. i want to store the pics in there own arraylist so ive used:

myImages = new ArrayList();
myImages.Add ("Dell PC.jpg");
myImages.Add ("HP PC.jpeg");
myImages.Add ("MAC.jpg");

The program compiles ok. but i also have a display method which controls the display on the form so that evertime a button is pressed it goes through the arraylists:

//Controls the display of text output using displayNote method
public void displayNote ( int i, TextBox tbox1, TextBox tbox2, TextBox tbox3, TextBox txtbx_Search, PictureBox pictureBox1)
{
tbox1.Clear(); // Clears txt box
tbox3.Clear();
txtbx_Search.Clear();
tbox2.Text = Convert.ToString(i+1);
tbox1.Text = Convert.ToString (inventory[ i ]);
tbox3.Text = Convert.ToString (install_notes[ i ]);
//pictureBox1.Image =

im not sure what to put for the image retrieval. basically when you press the button 1 item will be displayed with details in several txtbx's and i wanted a picture for that item, then when you press the same button again then the next item will appear again with the details in the textboxes and another picture in the picturebox.

any idea's?

Thanks
Xbox Live: Bring It On

Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking

Comments

Sign In or Register to comment.