You are viewing our Forum Archives. To view or take place in current topics click here.
#31. Posted:
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Updated with KD to 2 Decimal Places, Smaller Cleaner Form And New Video
- 1useful
- 0not useful
#32. Posted:
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
If Textbox2.Text = "0" Then
Textbox2.Text = Textbox1.Text & ".0"
You can't divide by zero.
- 0useful
- 0not useful
#33. Posted:
Status: Offline
Joined: Dec 08, 201013Year Member
Posts: 1,158
Reputation Power: 47
Status: Offline
Joined: Dec 08, 201013Year Member
Posts: 1,158
Reputation Power: 47
thre is a much easier way to do this guys! its called simple division.
open calculator in your accessories and type your kills, then click divide and then type you deaths, press equals. there you go, this kids probably has a virus anyway
open calculator in your accessories and type your kills, then click divide and then type you deaths, press equals. there you go, this kids probably has a virus anyway
- 0useful
- 1not useful
#34. Posted:
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
ProgramminGawd wrote
If Textbox2.Text = "0" Then
Textbox2.Text = Textbox1.Text & ".0"
You can't divide by zero.
Can you please tell me what your talking about
- 1useful
- 0not useful
#35. Posted:
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
defhead wrote thre is a much easier way to do this guys! its called simple division.
open calculator in your accessories and type your kills, then click divide and then type you deaths, press equals. there you go, this kids probably has a virus anyway
This is the programming section not whip out your calculator section please go away
- 2useful
- 0not useful
#36. Posted:
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
Extazc wroteProgramminGawd wrote
If Textbox2.Text = "0" Then
Textbox2.Text = Textbox1.Text & ".0"
You can't divide by zero.
Can you please tell me what your talking about
If you put 12484 kills and 0 deaths, your program returns an error.
Remove your button code and add this
If TextBox2.Text = "0" Then
Label3.Text = TextBox1.Text & ".0"
Else
Dim result As Decimal
result = Decimal.Divide(Decimal.Parse(TextBox1.Text), Decimal.Parse(TextBox2.Text))
result = FormatNumber(result, 2, TriState.False)
Label3.Text = String.Format("Your KD is {0} ", result)
End If
- 0useful
- 0not useful
#37. Posted:
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
ProgramminGawd wroteExtazc wroteProgramminGawd wrote
If Textbox2.Text = "0" Then
Textbox2.Text = Textbox1.Text & ".0"
You can't divide by zero.
Can you please tell me what your talking about
If you put 12484 kills and 0 deaths, your program returns an error.
Remove your button code and add this
If TextBox2.Text = "0" Then
Label3.Text = TextBox1.Text & ".0"
Else
Dim result As Decimal
result = Decimal.Divide(Decimal.Parse(TextBox1.Text), Decimal.Parse(TextBox2.Text))
result = FormatNumber(result, 2, TriState.False)
Label3.Text = String.Format("Your KD is {0} ", result)
End If
Ohhh ok then i get it thanks kid
- 1useful
- 0not useful
#38. Posted:
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
Status: Offline
Joined: Nov 27, 201112Year Member
Posts: 44
Reputation Power: 1
Extazc wroteProgramminGawd wroteExtazc wroteProgramminGawd wrote
If Textbox2.Text = "0" Then
Textbox2.Text = Textbox1.Text & ".0"
You can't divide by zero.
Can you please tell me what your talking about
If you put 12484 kills and 0 deaths, your program returns an error.
Remove your button code and add this
If TextBox2.Text = "0" Then
Label3.Text = TextBox1.Text & ".0"
Else
Dim result As Decimal
result = Decimal.Divide(Decimal.Parse(TextBox1.Text), Decimal.Parse(TextBox2.Text))
result = FormatNumber(result, 2, TriState.False)
Label3.Text = String.Format("Your KD is {0} ", result)
End If
Ohhh ok then i get it thanks kid
I told you... stop calling me kid.
- 0useful
- 1not useful
#39. Posted:
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
ProgramminGawd wrote Just noticed you said I can't do something like that (the so called "animation" when really you just changed the size of the form and made three text boxes visible) LOL.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Height = 3444
Me.Width = 1343
Textbox1.Visible = True
End Sub
End Class
I'm sorry... but when my name is "ProgramminGawd" you probably shouldn't try to imply I'm a noob and don't know what I'm doing.
Haha? Your TTG name is your credentials? I can make my username 'GolfGawd', but I'll still be awful at golf.
Just face the facts:
-everybody hates you
-you're useless
-you should get off TTG
- 2useful
- 1not useful
#40. Posted:
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
Status: Offline
Joined: Aug 17, 201112Year Member
Posts: 1,444
Reputation Power: 75
DictatorOfYourLife wroteProgramminGawd wrote Just noticed you said I can't do something like that (the so called "animation" when really you just changed the size of the form and made three text boxes visible) LOL.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Height = 3444
Me.Width = 1343
Textbox1.Visible = True
End Sub
End Class
I'm sorry... but when my name is "ProgramminGawd" you probably shouldn't try to imply I'm a noob and don't know what I'm doing.
Haha? Your TTG name is your credentials? I can make my username 'GolfGawd', but I'll still be awful at golf.
Just face the facts:
-everybody hates you
-you're useless
-you should get off TTG
Pretty harsh Bro, But still the truth needed to be said
- 2useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.