Click here to Skip to main content
15,913,773 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help using registration code Pin
EliottA31-May-10 10:12
EliottA31-May-10 10:12 
GeneralRe: Help using registration code Pin
Johnny J.31-May-10 22:32
professionalJohnny J.31-May-10 22:32 
GeneralRe: Help using registration code Pin
Peter Leipzig2-Jun-10 5:36
Peter Leipzig2-Jun-10 5:36 
GeneralRe: Help using registration code [modified] Pin
Johnny J.2-Jun-10 22:26
professionalJohnny J.2-Jun-10 22:26 
GeneralRe: Help using registration code Pin
Peter Leipzig3-Jun-10 12:14
Peter Leipzig3-Jun-10 12:14 
Questionread & write xml Pin
maddoxcom29-May-10 2:31
maddoxcom29-May-10 2:31 
AnswerRe: read & write xml Pin
Dave Kreskowiak30-May-10 3:25
mveDave Kreskowiak30-May-10 3:25 
Questionbutton + in calc works bad. Pin
hasani200729-May-10 1:34
hasani200729-May-10 1:34 
Hello all;
I have a question for my calculator project.
command13 is a + button. when you sum 2 number it works correctly. but if you press this button for second time it will sum the last result with itself & again & again if you press + button.

NOW HELP ME : what should I do to avoid sum in 2nd,3rd,... button click?

snippet code is appended.

Private Sub Command13_Click()

Combo1.AddItem Combo1.Text
Combo1.AddItem "+"
'b = Combo1.ListCount
Select Case o
Case Is = 1
Combo1.Text = a + Val(Combo1.Text)
Case Is = 2
Combo1.Text = a - Val(Combo1.Text)
Case Is = 3
Combo1.Text = a * Val(Combo1.Text)
Case Is = 4
Combo1.Text = a / Val(Combo1.Text)
End Select
a = Val(Combo1.Text)
h = 1
o = 1
End Sub



Thanks anyone help me...
AnswerRe: button + in calc works bad. Pin
Luc Pattyn29-May-10 1:57
sitebuilderLuc Pattyn29-May-10 1:57 
Questioni need a help Pin
Folad System29-May-10 0:01
Folad System29-May-10 0:01 
AnswerRe: i need a help PinPopular
Smithers-Jones29-May-10 11:57
Smithers-Jones29-May-10 11:57 
AnswerRe: i need a help Pin
Kschuler2-Jun-10 10:52
Kschuler2-Jun-10 10:52 
QuestionTracking NewsTicker Pin
police_0104028-May-10 21:09
police_0104028-May-10 21:09 
AnswerRe: Tracking NewsTicker Pin
LloydA11129-May-10 12:31
LloydA11129-May-10 12:31 
QuestionThanks for prior help- next problem- array/collection or class to store/save data Pin
lemarshall27-May-10 14:26
lemarshall27-May-10 14:26 
AnswerRe: Thanks for prior help- next problem- array/collection or class to store/save data Pin
Andy_L_J28-May-10 8:41
Andy_L_J28-May-10 8:41 
GeneralRe: Thanks for prior help- next problem- array/collection or class to store/save data Pin
lemarshall2-Jun-10 16:36
lemarshall2-Jun-10 16:36 
QuestionCreating label array in vb.net 2007 Pin
lemarshall27-May-10 5:24
lemarshall27-May-10 5:24 
AnswerRe: Creating label array in vb.net 2007 Pin
Luc Pattyn27-May-10 5:39
sitebuilderLuc Pattyn27-May-10 5:39 
GeneralRe: Creating label array in vb.net 2007 Pin
lemarshall27-May-10 6:37
lemarshall27-May-10 6:37 
GeneralRe: Creating label array in vb.net 2007 Pin
Luc Pattyn27-May-10 7:46
sitebuilderLuc Pattyn27-May-10 7:46 
AnswerRe: Creating label array in vb.net 2007 [modified] Pin
William Winner27-May-10 8:21
William Winner27-May-10 8:21 
GeneralRe: Creating label array in vb.net 2007 Pin
lemarshall27-May-10 9:50
lemarshall27-May-10 9:50 
GeneralRe: Creating label array in vb.net 2007 Pin
William Winner27-May-10 10:42
William Winner27-May-10 10:42 
Questionvisual basic 2008 captcha to picture box help Pin
Snipe7627-May-10 2:43
Snipe7627-May-10 2:43 

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.