Question on Visual Basic – Program that shows a restaurant menu?

Hello. Can I have a source code of a project in Visual Basic 6 where in, it has different check box and option box. If you clicked that check box / option box, an image will appear that corresponds on it. Like wise, I need a code for the total price, quantity, change and cash. I just don’t know how to do it. Thanks!

this doesn’t sound too difficult… where’s your problem?

in case you don’t answer, here are a few i think it may be:

open a new project in vb (or, open this project file)
if there is no checkbox, you can add it using the toolbox
add a picturebox for the picture you want. you can assign it a picture or assign one later when it’s running. set the ‘visible’ to false
double-click on the checkbox control, and you should be brought to an auto-generated subprocedure for when the checkbox is changed.
is checkbox.checked, picturebox.visible=true (or, easier: picturebox.visible=checkbox.checked)

almost no idea what you mean by ‘total price, quantity, change and cash’…

for quantity, you could use a numericUpDown
then multiply price by numeric.value
change would be cash – numeric.value * price

One Response to “Question on Visual Basic – Program that shows a restaurant menu?”

  1. this doesn’t sound too difficult… where’s your problem?

    in case you don’t answer, here are a few i think it may be:

    open a new project in vb (or, open this project file)
    if there is no checkbox, you can add it using the toolbox
    add a picturebox for the picture you want. you can assign it a picture or assign one later when it’s running. set the ‘visible’ to false
    double-click on the checkbox control, and you should be brought to an auto-generated subprocedure for when the checkbox is changed.
    is checkbox.checked, picturebox.visible=true (or, easier: picturebox.visible=checkbox.checked)

    almost no idea what you mean by ‘total price, quantity, change and cash’…

    for quantity, you could use a numericUpDown
    then multiply price by numeric.value
    change would be cash – numeric.value * price
    References :

Leave a Reply