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

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




Pizza Parlour

 
Reply to this topicStart new topic

Pizza Parlour

biggles2008
21 Jun, 2008 - 08:16 AM
Post #1

Damn you Aerosmith!
Group Icon

Joined: 5 Mar, 2008
Posts: 523



Thanked: 1 times
Dream Kudos: 150
My Contributions
Hi,

So okay im learning the basics of VB.NET atm so i thought id make something simple, A Pizza Order thing. No it doesnt save the orders but its does show the users choice in a label.

My problem is: I wan to have it so when it pops up instead of saying "Thankyou for your order" i want it to say "You chose <PIzza type>"

Any help woul dbe much apprieciated. And as far as the DIC policy goes i have tried on my part and supplied my code...

I know some will say "Finish learning" but the only reason im doing thisprogram now, is to see what i have learned smile.gif

Im so newby sad.gif

Heres the code:

CODE
Public Class Form1

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        End
    End Sub

    Private Sub Pizza1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Pizza1.CheckedChanged
        Label1.Text = "You chose Pepperoni"



    End Sub

    Private Sub Pizza2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Pizza2.CheckedChanged
        Label1.Text = "You chose Vegetarian"
    End Sub

    Private Sub Pizza3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Pizza3.CheckedChanged
        Label1.Text = "You chose Hawian"
    End Sub

    Private Sub Pizza4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Pizza4.CheckedChanged
        Label1.Text = "You chose Margharitta"
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Prompt As String

        Prompt = " Thankyou for your order"
        MsgBox(Prompt, , " Thankyou for your order")

    End Sub

End Class

User is offlineProfile CardPM
+Quote Post

WayneSpangler
RE: Pizza Parlour
21 Jun, 2008 - 03:24 PM
Post #2

D.I.C Head
**

Joined: 22 Mar, 2008
Posts: 103



Thanked: 9 times
My Contributions
Change your prompt:
Prompt = " Thankyou for your order"
to
Prompt = Label1.text

User is offlineProfile CardPM
+Quote Post

biggles2008
RE: Pizza Parlour
21 Jun, 2008 - 07:58 PM
Post #3

Damn you Aerosmith!
Group Icon

Joined: 5 Mar, 2008
Posts: 523



Thanked: 1 times
Dream Kudos: 150
My Contributions
OMW!!! I tried that last night and nothing!

Well thanks Wayne it works !
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:37PM

Be Social

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

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month