Click here to Skip to main content
14,766,373 members
Home » Discussions » Visual Basic
   

Visual Basic

 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 19:14
MemberArun.Immanuel29-Apr-07 19:14 
GeneralRe: string manipulation Pin
Christian Graus29-Apr-07 19:31
protectorChristian Graus29-Apr-07 19:31 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 19:59
MemberArun.Immanuel29-Apr-07 19:59 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 20:15
MemberArun.Immanuel29-Apr-07 20:15 
GeneralRe: string manipulation Pin
uglyeyes1-May-07 19:48
Memberuglyeyes1-May-07 19:48 
QuestionSerialize WIndows Form Pin
milan.net29-Apr-07 9:57
Membermilan.net29-Apr-07 9:57 
AnswerRe: Serialize WIndows Form Pin
Christian Graus29-Apr-07 12:18
protectorChristian Graus29-Apr-07 12:18 
QuestionIf statment problem Pin
aerosmith2k129-Apr-07 8:39
Memberaerosmith2k129-Apr-07 8:39 
Im having issues with my if statments for this program.

I have 3 ratiobuttons, each one should do a different task.

The first one works alright, but now the 2nd one will not work because of the logic i believe.


It should deduct the value from label3.text, only if

label3 is higher then the amount of the cheque which is Textbox1

If the value of textbox1 is higher then label3 it has to display a messagebox saying insuficient funds. and then deduct a service charge which is declared as 10$

Here is my code. if anyone is able to assist, it would be greatly appreciated.




Dim servicecharge As Integer
Dim transaction As Integer
Dim Balance As Integer


' Declare the value of service charge
servicecharge = 10
transaction = TextBox1.Text
Balance = Label3.Text

' Deposit Funds to the account
If RadioButton1.Checked = True Then
Label3.Text = TextBox1.Text
End If
' Process a cheque through the account, confirming sufficient funds, If returned NSF the account
' will not be deducted the amount of the cheque, but will be charged 10 dollars.
If RadioButton2.Checked = True Then
Balance = Balance - transaction
ElseIf transaction > Balance Then

MessageBox.Show("Insufficient Funds")
Label3.Text = Label3.Text - servicecharge
End If
' Service charge processed on the account.
If RadioButton3.Checked = True Then
Label3.Text = Label3.Text - servicecharge
End If

End Sub
AnswerRe: If statment problem Pin
Christian Graus29-Apr-07 12:22
protectorChristian Graus29-Apr-07 12:22 
AnswerRe: If statment problem Pin
Navneet Hegde29-Apr-07 23:15
MemberNavneet Hegde29-Apr-07 23:15 
GeneralRe: If statment problem Pin
aerosmith2k130-Apr-07 2:51
Memberaerosmith2k130-Apr-07 2:51 
QuestionWindows Genuine Advantage (WGA) check in my own app Pin
sereby@gmail.com29-Apr-07 7:12
Membersereby@gmail.com29-Apr-07 7:12 
AnswerRe: Windows Genuine Advantage (WGA) check in my own app Pin
Dave Kreskowiak29-Apr-07 8:17
mveDave Kreskowiak29-Apr-07 8:17 
QuestionFunction does not return value on all code paths [modified] Pin
Pradeep Shamarao29-Apr-07 5:44
MemberPradeep Shamarao29-Apr-07 5:44 
AnswerRe: Function does not return value on all code paths Pin
kubben29-Apr-07 6:37
Memberkubben29-Apr-07 6:37 
GeneralRe: Function does not return value on all code paths Pin
Pradeep Shamarao29-Apr-07 21:01
MemberPradeep Shamarao29-Apr-07 21:01 
AnswerRe: Function does not return value on all code paths Pin
Guffa29-Apr-07 9:03
MemberGuffa29-Apr-07 9:03 
QuestionTooltip with a close button. Pin
udaykatakam28-Apr-07 20:34
Memberudaykatakam28-Apr-07 20:34 
AnswerRe: Tooltip with a close button. Pin
kubben29-Apr-07 3:28
Memberkubben29-Apr-07 3:28 
GeneralRe: Tooltip with a close button. Pin
udaykatakam29-Apr-07 18:27
Memberudaykatakam29-Apr-07 18:27 
GeneralRe: Tooltip with a close button. Pin
Christian Graus29-Apr-07 19:03
protectorChristian Graus29-Apr-07 19:03 
AnswerRe: Tooltip with a close button. Pin
Arun.Immanuel29-Apr-07 5:45
MemberArun.Immanuel29-Apr-07 5:45 
GeneralRe: Tooltip with a close button. Pin
udaykatakam29-Apr-07 18:25
Memberudaykatakam29-Apr-07 18:25 
GeneralRe: Tooltip with a close button. Pin
Arun.Immanuel29-Apr-07 19:02
MemberArun.Immanuel29-Apr-07 19:02 
QuestionCompile and Execute C/C++ using vb.net Pin
Senthil S28-Apr-07 17:49
MemberSenthil S28-Apr-07 17:49 

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.