You are viewing our Forum Archives. To view or take place in current topics click here.
#31. Posted:
Extazc
  • TTG Senior
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
#32. Posted:
ProgramminGawd
  • New Member
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.
#33. Posted:
defhead
  • TTG Senior
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
#34. Posted:
Extazc
  • TTG Senior
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
#35. Posted:
Extazc
  • TTG Senior
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
#36. Posted:
ProgramminGawd
  • New Member
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 wrote
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


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
#37. Posted:
Extazc
  • TTG Senior
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
Extazc wrote
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


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
#38. Posted:
ProgramminGawd
  • New Member
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 wrote
ProgramminGawd wrote
Extazc wrote
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


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.
#39. Posted:
DictatorOfYourLife
  • Ladder Climber
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
#40. Posted:
Extazc
  • TTG Senior
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 wrote
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


Pretty harsh Bro, But still the truth needed to be said
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.