Click here to Skip to main content
15,923,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Not allowing a program on a CD to be copied Pin
Dave Kreskowiak13-Oct-09 4:57
mveDave Kreskowiak13-Oct-09 4:57 
QuestionGuide on Crystal Report Pin
waner michaud12-Oct-09 10:25
waner michaud12-Oct-09 10:25 
QuestionFile name Parsing Pin
IvanIT12-Oct-09 5:45
IvanIT12-Oct-09 5:45 
AnswerRe: File name Parsing Pin
Henry Minute12-Oct-09 5:53
Henry Minute12-Oct-09 5:53 
GeneralRe: File name Parsing Pin
IvanIT12-Oct-09 6:09
IvanIT12-Oct-09 6:09 
GeneralRe: File name Parsing Pin
Henry Minute12-Oct-09 6:26
Henry Minute12-Oct-09 6:26 
GeneralRe: File name Parsing Pin
IvanIT12-Oct-09 6:41
IvanIT12-Oct-09 6:41 
QuestionVisaul Basic program giving me fits! Pin
Chris081212-Oct-09 5:14
Chris081212-Oct-09 5:14 
This should calculate and display the total amount due. There are 3 radio buttons, A, B, C...Nonprofit should get a 20% discount from final charges. I'm supposed to have three radio buttons (package a, b, and c), and one check box (non-profit). If non-profit is selected, a 20% discount should be deducted from final charges. The number of hours used in a month cannot exceeed 744. Value must be numeric. Also, the packages are internet service providers, each has it own set price, a-10 hours=$9.95, additional hours=$2.00 per, package b-20 hours=$14.95, additional $1.00 per hour and c- unlimited for $19.95.STILL having problems with this.....I can't get the prices to load. And the longer I work on this, the messier it gets.......can someone take a look at it and see if you can help. I'm not asking for the answer but something that is going to make the light go on over my head!!!



Public Class Form1<br />
<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
    End Sub<br />
<br />
    Private Sub radA_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radA.CheckedChanged<br />
        <br />
    End Sub<br />
<br />
    Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click<br />
        'End the application by closing the window.<br />
        Me.Close()<br />
    End Sub<br />
<br />
    Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click<br />
        'Clear the text and label boxes.<br />
        txtPriceA.Clear()<br />
        txtPriceB.Clear()<br />
        txtPriceC.Clear()<br />
        txtHoursUsedA.Clear()<br />
        txtHoursUsedB.Clear()<br />
        txtHoursUsedC.Clear()<br />
    End Sub<br />
<br />
    Private Sub radB_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radB.CheckedChanged<br />
        <br />
    End Sub<br />
<br />
    Private Sub radC_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radC.CheckedChanged<br />
        <br />
    End Sub<br />
<br />
    Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click<br />
        'txtHoursUsedA      > 10<br />
        'txtPriceA          9.95<br />
        'lblTotal           hoursUsed * 2.0<br />
        'txtHoursUsedB      > 20<br />
        'txtPriceB          14.95<br />
        'lblTotal           hoursUsed * 1.0 <br />
        'txtHoursUsedC      > 10<br />
        'txtPriceC          9.95<br />
        'lblTotal           hoursUsed * 2.0<br />
<br />
<br />
        If radA.Checked True Then<br />
            txtPriceA.Text = 9.95<br />
            If txtHoursUsedA.Text > 10 Then<br />
            End If<br />
<br />
          If radB.Checked True Then<br />
                txtPriceB.Text = 14.95<br />
                If txtHoursUsedA.Text > 20 Then<br />
                End If<br />
<br />
                If radC.Checked = True Then<br />
<br />
                End If<br />
                If NonProfit.Checked Then<br />
                    Total = Total * 0.8<br />
                End If<br />
<br />
End Sub<br />
End Class<br />

AnswerRe: Visaul Basic program giving me fits! Pin
IvanIT12-Oct-09 6:05
IvanIT12-Oct-09 6:05 
AnswerRe: Visaul Basic program giving me fits! Pin
Dave Kreskowiak12-Oct-09 6:56
mveDave Kreskowiak12-Oct-09 6:56 
GeneralRe: Visaul Basic program giving me fits! Pin
Paul Conrad13-Oct-09 5:47
professionalPaul Conrad13-Oct-09 5:47 
GeneralRe: Visaul Basic program giving me fits! Pin
Dave Kreskowiak13-Oct-09 6:36
mveDave Kreskowiak13-Oct-09 6:36 
GeneralRe: Visual Basic program giving me fits! Pin
Chris081214-Oct-09 5:42
Chris081214-Oct-09 5:42 
GeneralRe: Visual Basic program giving me fits! Pin
Dave Kreskowiak14-Oct-09 11:51
mveDave Kreskowiak14-Oct-09 11:51 
AnswerRe: Visaul Basic program giving me fits! Pin
Henry Minute12-Oct-09 6:57
Henry Minute12-Oct-09 6:57 
GeneralRe: Visaul Basic program giving me fits! Pin
Mycroft Holmes12-Oct-09 17:57
professionalMycroft Holmes12-Oct-09 17:57 
GeneralRe: Visaul Basic program giving me fits! Pin
Henry Minute13-Oct-09 0:28
Henry Minute13-Oct-09 0:28 
QuestionHow To Create a basic Gantt chart Pin
Anoop Brijmohun12-Oct-09 3:24
Anoop Brijmohun12-Oct-09 3:24 
AnswerRe: How To Create a basic Gantt chart Pin
Henry Minute12-Oct-09 4:18
Henry Minute12-Oct-09 4:18 
GeneralRe: How To Create a basic Gantt chart Pin
Anoop Brijmohun12-Oct-09 4:24
Anoop Brijmohun12-Oct-09 4:24 
AnswerRe: How To Create a basic Gantt chart Pin
Andy_L_J12-Oct-09 18:37
Andy_L_J12-Oct-09 18:37 
QuestionPassing ByVal or ByRef Pin
PAguilar0912-Oct-09 1:54
PAguilar0912-Oct-09 1:54 
AnswerRe: Passing ByVal or ByRef Pin
freakyit12-Oct-09 3:02
freakyit12-Oct-09 3:02 
GeneralRe: Passing ByVal or ByRef Pin
PAguilar0912-Oct-09 3:48
PAguilar0912-Oct-09 3:48 
GeneralRe: Passing ByVal or ByRef Pin
Luc Pattyn12-Oct-09 3:53
sitebuilderLuc Pattyn12-Oct-09 3:53 

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.