Click here to Skip to main content
16,007,472 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Shortcut Pin
kostasdiktia221-Jan-06 21:14
kostasdiktia221-Jan-06 21:14 
QuestionIP Address Pin
militiaware21-Jan-06 12:12
militiaware21-Jan-06 12:12 
AnswerRe: IP Address Pin
Dave Kreskowiak21-Jan-06 17:53
mveDave Kreskowiak21-Jan-06 17:53 
QuestionCreating an event at runtime Pin
Mark0621-Jan-06 2:27
Mark0621-Jan-06 2:27 
AnswerRe: Creating an event at runtime Pin
Guffa21-Jan-06 2:54
Guffa21-Jan-06 2:54 
GeneralRe: Creating an event at runtime Pin
Mark0621-Jan-06 3:19
Mark0621-Jan-06 3:19 
GeneralRe: Creating an event at runtime Pin
Dave Kreskowiak21-Jan-06 4:31
mveDave Kreskowiak21-Jan-06 4:31 
QuestionHelp with calculator Pin
lonewolfa120-Jan-06 17:47
lonewolfa120-Jan-06 17:47 
Right now i am trying to make a calculator that can compute more than two integers. So far my equal sign button is big if statement that decides which button was used and which action needs to be taken to compute the right answer.

If btn = 1 Then
total2 = total1 + Val(txtDisplay.Text)
txtDisplay.Text = total2
total1 = 0
ElseIf btn = 2 Then
total2 = total1 * Val(txtDisplay.Text)
txtDisplay.Text = total2
total1 = 0
ElseIf btn = 3 Then
total2 = total1 - Val(txtDisplay.Text)
txtDisplay.Text = total2
total1 = 0
ElseIf btn = 4 Then
total2 = total1 / Val(txtDisplay.Text)
txtDisplay.Text = total2
total1 = 0
ElseIf btn = 5 Then
total2 = total1 ^ Val(txtDisplay.Text)
txtDisplay.Text = total2
total1 = 0
ElseIf btn = 6 Then
total2 = total1 * (10 ^ Val(txtDisplay.Text))
txtDisplay.Text = total2
total1 = 0
ElseIf btn = Text Then

End If

Dim s As String
s = String.Format("{0:n2}", total2)
txtDisplay.Text = s

i am having touble making the integers stay in the right places to compute more than two numbers. This my plus button. (I am still trying to figure it out)

If Not total1 = Val("") Then
txtDisplay.Text = total1
ElseIf total1 = Val("") Then
txtDisplay.Text = number1
End If

I am just starting to program and will be grateful for anybody's help



doing_the_right_thing_sometimes_isn't_doing_the_right_thing

QuestionHow I can change the values in cells of an EXISTING .xls file? Visual Basic .NET Pin
kostasdiktia220-Jan-06 17:39
kostasdiktia220-Jan-06 17:39 
AnswerRe: How I can change the values in cells of an EXISTING .xls file? Visual Basic .NET Pin
Dave Kreskowiak21-Jan-06 4:28
mveDave Kreskowiak21-Jan-06 4:28 
AnswerRe: How I can change the values in cells of an EXISTING .xls file? Visual Basic .NET Pin
Mekong River21-Jan-06 4:38
Mekong River21-Jan-06 4:38 
AnswerLike this? Pin
kostasdiktia221-Jan-06 4:50
kostasdiktia221-Jan-06 4:50 
GeneralRe: Like this? Pin
Dave Kreskowiak21-Jan-06 8:32
mveDave Kreskowiak21-Jan-06 8:32 
Questionhow to put flash in vb.net Pin
ipro3220-Jan-06 16:47
ipro3220-Jan-06 16:47 
AnswerRe: how to put flash in vb.net Pin
Vimal Raj20-Jan-06 20:16
Vimal Raj20-Jan-06 20:16 
AnswerRe: how to put flash in vb.net Pin
Mekong River21-Jan-06 4:41
Mekong River21-Jan-06 4:41 
Questiondatagrid header text Pin
Pravin H20-Jan-06 14:51
Pravin H20-Jan-06 14:51 
AnswerRe: datagrid header text Pin
abhinish20-Jan-06 18:30
abhinish20-Jan-06 18:30 
AnswerRe: datagrid header text Pin
Dave Kreskowiak21-Jan-06 4:26
mveDave Kreskowiak21-Jan-06 4:26 
AnswerRe: datagrid header text Pin
Mekong River21-Jan-06 4:48
Mekong River21-Jan-06 4:48 
QuestionSearch button Pin
shakizil20-Jan-06 7:07
shakizil20-Jan-06 7:07 
AnswerRe: Search button Pin
Mike K. Clark20-Jan-06 9:50
Mike K. Clark20-Jan-06 9:50 
GeneralRe: Search button Pin
shakizil20-Jan-06 10:48
shakizil20-Jan-06 10:48 
AnswerRe: Search button Pin
Mike K. Clark20-Jan-06 13:42
Mike K. Clark20-Jan-06 13:42 
GeneralRe: Search button Pin
Icharus20-Jan-06 15:20
Icharus20-Jan-06 15:20 

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.