Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Visual Basic 2010 printing on a Zebra via serial port Pin
Dave Kreskowiak21-Apr-11 12:05
mveDave Kreskowiak21-Apr-11 12:05 
QuestionConvert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Paramu197318-Apr-11 5:23
Paramu197318-Apr-11 5:23 
AnswerRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Simon_Whale18-Apr-11 5:33
Simon_Whale18-Apr-11 5:33 
JokeRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Andy_L_J24-Apr-11 1:52
Andy_L_J24-Apr-11 1:52 
QuestionLogin Project Help... Pin
dzhello18-Apr-11 4:01
dzhello18-Apr-11 4:01 
AnswerRe: Login Project Help... Pin
Dave Kreskowiak18-Apr-11 4:38
mveDave Kreskowiak18-Apr-11 4:38 
AnswerRe: Login Project Help... Pin
Simon_Whale18-Apr-11 5:31
Simon_Whale18-Apr-11 5:31 
QuestionProject Help! Pin
Member 784273314-Apr-11 16:15
Member 784273314-Apr-11 16:15 
How do I code the price function for the prices of each checked boxes and radio buttons to show in the total label? I have decided that if no one is going to help me with this project, then I will drop the class with a W.
If anyone wants to see my graphical user interface, I will send it to you. Thank you for your help geniuses! I will say good things about you in heaven.
Public Class Form1

    Private Sub exitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles exitButton.Click
        Me.Close()
    End Sub

    Private Sub newOrderButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles newOrderButton.Click
        ' clears all the information that is displayed and start over
        nameTextBox.Text = String.Empty
        addressTextBox.Text = String.Empty
        telephoneTextBox.Text = String.Empty

        viewCheckBox.Checked = False
        bedCheckBox.Checked = False
        jacuzziCheckBox.Checked = False
        breakfastCheckBox.Checked = False
        internetCheckBox.Checked = False
        mattressCheckBox.Checked = False
        sealyRadioButton.Checked = False
        sertaRadioButton.Checked = False
        simmonsRadioButton.Checked = False

        regularRadioButton.Checked = False
        executiveRadioButton.Checked = False
        suiteRadioButton.Checked = False

        cashRadioButton.Checked = False
        visaTextBox.Text = String.Empty
        visaTextBox.Enabled = False
        visaRadioButton.Checked = False
        mastercardTextBox.Text = String.Empty
        mastercardTextBox.Enabled = False
        mastercardRadioButton.Checked = False
        checkTextBox.Text = String.Empty
        checkTextBox.Enabled = False
        checkRadioButton.Checked = False
        nameTextBox.Focus()
    End Sub

    Private Sub orderButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles orderButton.Click
        Dim regular As Double
        Dim total As Double



        Double.TryParse(regularRadioButton.Checked, regular)

        If regularRadioButton.Checked Then
            totalLabel.Text = total + 199.5
        ElseIf executiveRadioButton.Checked Then
            totalLabel.Text = total + 375.0
        ElseIf suiteRadioButton.Checked Then
            totalLabel.Text = total + 495.99
        End If
        If viewCheckBox.Checked Then
            totalLabel.Text = total + 250.0
        ElseIf bedCheckBox.Checked Then
            totalLabel.Text = total + 70.0
        ElseIf jacuzziCheckBox.Checked Then
            totalLabel.Text = total + 199.0
        ElseIf breakfastCheckBox.Checked Then
            totalLabel.Text = total + 30.0
        ElseIf internetCheckBox.Checked Then
            totalLabel.Text = total + 19.99
        ElseIf mattressCheckBox.Checked Then
            totalLabel.Text = total + 55
            totalLabel.Text = total + 45.0
            totalLabel.Text = total + 35.0


        End If

        messageLabel.Text = "You have placed an order for" & ControlChars.NewLine & ControlChars.NewLine
        If regularRadioButton.Checked Then
            order = "Regular ($199.50)"

        ElseIf executiveRadioButton.Checked Then
            order = "Executive ($375.00)"
        ElseIf suiteRadioButton.Checked Then
            order = "Suite (495.99)"
        End If

        totalLabel.Text = total.ToString("C2")

    End Sub

    Private Sub cashRadioButton_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cashRadioButton.CheckedChanged
        If cashRadioButton.Checked Then
            visaTextBox.Enabled = False
        End If
        
        If cashRadioButton.Checked Then
            mastercardTextBox.Enabled = False
        End If
      

        If cashRadioButton.Checked Then
            checkTextBox.Enabled = False
        End If

        If visaRadioButton.Checked Then
            visaTextBox.Enabled = True
        End If



        If mastercardRadioButton.Checked Then
            mastercardTextBox.Enabled = True
        End If

        If checkRadioButton.Checked Then
            checkTextBox.Enabled = True
        End If
       
    End Sub

AnswerRe: Project Help! Pin
Luc Pattyn15-Apr-11 0:17
sitebuilderLuc Pattyn15-Apr-11 0:17 
AnswerRe: Project Help! Pin
_Erik_18-Apr-11 3:19
_Erik_18-Apr-11 3:19 
Questionvisual basic data report Pin
sandeepkumardadwal11-Apr-11 19:30
sandeepkumardadwal11-Apr-11 19:30 
AnswerRe: visual basic data report Pin
Abhinav S11-Apr-11 21:00
Abhinav S11-Apr-11 21:00 
AnswerRe: visual basic data report Pin
thatraja12-Apr-11 18:36
professionalthatraja12-Apr-11 18:36 
QuestionBest way to return class at runtime - based on value Pin
DeepToot7-Apr-11 7:23
DeepToot7-Apr-11 7:23 
AnswerRe: Best way to return class at runtime - based on value Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 11:16
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 11:16 
AnswerRe: Best way to return class at runtime - based on value Pin
Eddy Vluggen8-Apr-11 0:31
professionalEddy Vluggen8-Apr-11 0:31 
GeneralRe: Best way to return class at runtime - based on value Pin
Ali Al Omairi(Abu AlHassan)10-Apr-11 10:06
professionalAli Al Omairi(Abu AlHassan)10-Apr-11 10:06 
GeneralRe: Best way to return class at runtime - based on value Pin
DeepToot11-Apr-11 4:05
DeepToot11-Apr-11 4:05 
QuestionWrite special cahrs from database to text file using vb.net Pin
vijay24825-Apr-11 5:30
vijay24825-Apr-11 5:30 
AnswerRe: Write special cahrs from database to text file using vb.net Pin
Luc Pattyn5-Apr-11 5:53
sitebuilderLuc Pattyn5-Apr-11 5:53 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
Thomas Krojer5-Apr-11 21:05
Thomas Krojer5-Apr-11 21:05 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
vijay24825-Apr-11 21:41
vijay24825-Apr-11 21:41 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
riced5-Apr-11 23:36
riced5-Apr-11 23:36 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
vijay24826-Apr-11 0:05
vijay24826-Apr-11 0:05 
Questionfind window lock time and unlock time? Pin
kartheeee5-Apr-11 1:23
kartheeee5-Apr-11 1:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.