Computing.Net > Forums > Programming > Help with my program please

Help with my program please

Reply to Message Icon

Original Message
Name: kevster32
Date: October 4, 2004 at 09:17:10 Pacific
Subject: Help with my program please
OS: XP pro
CPU/Ram: AMD
Comment:

Hello people,

i am writing a program in visual basic where the user types in a text box how many tans of baked beans (42p each) they have brought .
Now say if they typed in 2 cans then i want a label to display the total price , and a picture to come up of how many they have brought

example:
User types in 2 cans in text box so below that i want 2 images of baked beans.

i have 10 image boxes each with a picture of a can of baked beans.

so basiclly i need help with the code part.

like whats the code for when they enter number of cans brought the picture displays.
and also the total price to appear in a label.

thank you all very much


Report Offensive Message For Removal

Response Number 1
Name: Sci-Guy
Date: October 4, 2004 at 19:05:39 Pacific
Subject: Help with my program please
Reply: (edit)

You could set the visible property of each image box to false, then use either Case or If...Else to set the visible properties of the appropriate number of image boxes to true. This may not be the most efficient way to do it, but it's the first thing that sprung to my mind.




Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Help with my program please 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software