|
Ah hell no, don't delete it! This stuff is priceless. Best laugh I've had in days.
|
|
|
|
|
i just kidding i am a VB.net & C#.net Certified( MCSD ) 2003 & 2005
Mohamad A. Flefel
C#.net Developer
|
|
|
|
|
mflefel wrote: i just kidding i am a VB.net & C#.net Certified( MCSD ) 2003 & 2005
Geez - I'm defending you and all the time you're taking the piss. Stop wasting people's time!
|
|
|
|
|
Well, I guess it proves that even though you passed all the tests and managed to get certified, it sure didn't make you a professional, did it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
mflefel wrote: just kidding i am a VB.net & C#.net Certified( MCSD ) 2003 & 2005
You sure about that? I'm not.
|
|
|
|
|
Are you asking about a For Loop or a While Loop? Come on dude, you've got to be more specific.
|
|
|
|
|
I had a problem. I had to create a simple calculator with VB.Net and this calculator had 0-9 buttons, add and minus function, a = button and a textbox for display of answer.
I couldnt figure out the codings for the buttons.
hope your can help me. thank you! =)
|
|
|
|
|
is this a home work ??
Tamimi - Code
|
|
|
|
|
why u joking on him,
i chalenge u to make it
Mohamad A. Flefel
C#.net Developer
|
|
|
|
|
i think abo rami could !!!!!!!!!1
Tamimi - Code
|
|
|
|
|
we ethier find a way or die Trieng
Mohamad A. Flefel
C#.net Developer
|
|
|
|
|
it too Simple and i will not tell u about it ,
think Alone
Mohamad A. Flefel
+962 79 5963865
C#.net Developer
|
|
|
|
|
|
-_-"....
ur r making things diff4 me.. n i'm a she not him.
n yes, this is a homework. =p
|
|
|
|
|
try to do it by your self, when you facing a problem
come back here and you will be answered
Tamimi - Code
|
|
|
|
|
hmmm... well...
i have done the codings for each individual buttons.
Eg for the button 9:
Private Sub btn9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn9.Click
TextBox1.Text = 9
temp = 9
End Sub
However, I can't figure out what should the code of '+' be.
Since when a user clicks on it, he/she will select another number button.
So is it simply this:
TextBox1.Text = Int(TextBox1.Text) + Int(TextBox1.Text)
|
|
|
|
|
u remind for someone called safrooooooooooooooooooooooooooooooot
Mohamad A. Flefel
C#.net Developer
|
|
|
|
|
hi ( SHE ) u had entered a programmers site u can't ask questions like this
Mohamad A. Flefel
mflefel@hotmail.com
C#.net Developer
|
|
|
|
|
Really? oh, ok. thx for trying to help me.
i'll try to figure it out then .
thank u....
|
|
|
|
|
i had made a sample calculater i can send it to u
its code is very easy
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net Developer
|
|
|
|
|
Hmm.. no thank you. I think is better if i figure it out myself or maybe you can try help me with my codings. =)
|
|
|
|
|
ok , here is my e-mail u can ask for help any time
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net Developer
|
|
|
|
|
dont ever put you email on a fourm
Tamimi - Code
|
|
|
|
|
=) thank you.
i have done the codings for each individual buttons.
Eg for the button 9:
Private Sub btn9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn9.Click
TextBox1.Text = 9
temp = 9
End Sub
However, I can't figure out what should the code of '+' be.
Since when a user clicks on it, he/she will select another number button.
So is it simply this:
TextBox1.Text = Int(TextBox1.Text) + Int(TextBox1.Text)
|
|
|
|
|
Here are some pointers:
You need to hold some state somewhere. You also need to hold the fact that the user can type numbers like 98 (the code you showed does not append more digits, it replaces them).
When a use clicks on an operator button (+-/*=) the program needs to store the current display, then it needs to accept a new number. When the user next pressed an operator it performs the function of the operator on the stored value and the current value.
When a user clicks on a digit button it has to append the value on to the other digits received.
|
|
|
|