Welcome to Dream.In.Code
Become a VB Expert!

Join 149,485 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,346 people online right now. Registration is fast and FREE... Join Now!




pizza ordering system in vb

 
Reply to this topicStart new topic

pizza ordering system in vb, problems with displaying text

alcon
27 Apr, 2007 - 05:36 AM
Post #1

New D.I.C Head
*

Joined: 27 Apr, 2007
Posts: 1


My Contributions
Hi,
I have a pizza ordering system to make and I have never used visual basic before. I've worked out most things, though I still have a problem.
I have a form called order.vb, which is where you press buttons to select your pizza. These include buttons for speciality pizzas, such as hawaiin, canadian etc. There's also a section to create your own pizza with buttons for each topping and pizza size.
My problem is, I have to display these orers in a text box (or scroll box etc) on another form called preorder.vb.
So that's my problem, any help would be much appreciated.
Thanks
User is offlineProfile CardPM
+Quote Post

melonchollie540
RE: Pizza Ordering System In Vb
27 Apr, 2007 - 06:51 AM
Post #2

New D.I.C Head
*

Joined: 6 Feb, 2007
Posts: 29


My Contributions
Place a button on order.vb and have a new form come up displaying the orders.

I would set constants for each type pizza e.g Const strHawaiian as String = "Hawaiian Pizza"

You can add If...Then logic that would stipulate that if a certain selection of boxes are selected, then it would be this kind of pizza.

like, lets say the user selects plain pizza. here's what it would look like

If chkPlain = vbChecked then
txtPreorder = Plain Pizza
End If

Then on the new form that opens up(preorder.vb) txt preorder would display "Plain Pizza"

Hope this helps
User is offlineProfile CardPM
+Quote Post

viggu212
RE: Pizza Ordering System In Vb
27 Apr, 2007 - 10:44 AM
Post #3

New D.I.C Head
*

Joined: 21 Apr, 2007
Posts: 7


My Contributions
as long as what i have understood...i think you want to access the text box on another form and place the "order" elements there. If this is so read on

you can use
preorder.<textbox name>.text=<ordered element>

and for a combo box(dropbox) use
preorder.<combobox name>.AddItem <ordered element>
here the elements will appear in the order in which you add them..n if possible please mail me the protype of your system....i'm also working on a system for Expenditure Management.
my e-mail address: viggu212@rediffmail.com
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:47PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month