Post: [Request] Some VB 2010 Codes
04-12-2011, 02:41 AM #1
Jared
Tranquility.
(adsbygoogle = window.adsbygoogle || []).push({}); So I need some codes that will work for what I am using.

2 Text Boxes and one button!
so like this


Rep Ammount:_________________
Rep Power:____________________

Show(something like this)

Then if they type in ammount it will give a rep power and if they type and if they type in rep power it will give the amount of rep

so what codes do i need for this? thanks!!:dance:
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Jared for this useful post:

IVThaKiller
04-12-2011, 03:35 PM #2
tylerallmighty
Human After All
Originally posted by iKeep View Post
So I need some codes that will work for what I am using.

2 Text Boxes and one button!
so like this


Rep Ammount:_________________
Rep Power:____________________

Show(something like this)

Then if they type in ammount it will give a rep power and if they type and if they type in rep power it will give the amount of rep

so what codes do i need for this? thanks!!:dance:

Hmmmmmmmmmmmmm...... I can work on one later, and send you the source code. Deal?
04-12-2011, 04:12 PM #3
Originally posted by iKeep View Post
So I need some codes that will work for what I am using.

2 Text Boxes and one button!
so like this


Rep Ammount:_________________
Rep Power:____________________

Show(something like this)

Then if they type in ammount it will give a rep power and if they type and if they type in rep power it will give the amount of rep

so what codes do i need for this? thanks!!:dance:




You need to use the divide function...

- Reputation / 10 = rep power
- Rep Power x 10 = reputation.

The following user thanked RuffRage for this useful post:

Nummpty
04-12-2011, 09:17 PM #4
IVThaKiller
Gym leader
Took me less than 5 minutes to code. Pleas give credits if you are going to use it.

    Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' By: IVThaKiller
' Pleas give credits.
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Calculate()
End Sub

Private Sub RA_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseClick
TextBox2.Clear()
End Sub

Private Sub RA_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Enter
Calculate()
End Sub

Public Sub Calculate()

TextBox2.Text = TextBox1.Text / 105

End Sub
End Class


---------- Post added at 05:17 PM ---------- Previous post was at 05:12 PM ----------

Originally posted by RODNEYTROTTER View Post
You need to use the divide function...

- Reputation / 10 = rep power
- Rep Power x 10 = reputation.


That is incorrect. It would be

Rep Amount / 105 = Re Power

My rep amount = 525. I rep someone, they get 5 reps.
04-12-2011, 09:55 PM #5
Jared
Tranquility.
Originally posted by IVThaKiller View Post
Took me less than 5 minutes to code. Pleas give credits if you are going to use it.

    Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' By: IVThaKiller
' Pleas give credits.
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Calculate()
End Sub

Private Sub RA_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseClick
TextBox2.Clear()
End Sub

Private Sub RA_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Enter
Calculate()
End Sub

Public Sub Calculate()

TextBox2.Text = TextBox1.Text / 105

End Sub
End Class


---------- Post added at 05:17 PM ---------- Previous post was at 05:12 PM ----------



That is incorrect. It would be

Rep Amount / 105 = Re Power

My rep amount = 525. I rep someone, they get 5 reps.


so how do you have this set up (yes if i use this i will have coded by VThaKiller)
04-12-2011, 10:00 PM #6
Originally posted by IVThaKiller View Post
Took me less than 5 minutes to code. Pleas give credits if you are going to use it.

    Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' By: IVThaKiller
' Pleas give credits.
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Calculate()
End Sub

Private Sub RA_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseClick
TextBox2.Clear()
End Sub

Private Sub RA_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Enter
Calculate()
End Sub

Public Sub Calculate()

TextBox2.Text = TextBox1.Text / 105

End Sub
End Class


---------- Post added at 05:17 PM ---------- Previous post was at 05:12 PM ----------



That is incorrect. It would be

Rep Amount / 105 = Re Power

My rep amount = 525. I rep someone, they get 5 reps.


It's actually 94, well atleast for my rep.... 2179 = rep power 23.

---------- Post added at 05:00 PM ---------- Previous post was at 04:56 PM ----------

Originally posted by iKeep View Post
so how do you have this set up (yes if i use this i will have coded by VThaKiller)



Create new vb project, remove all source and add that, then add two textboxes and a button... and


:wub:
04-12-2011, 10:03 PM #7
Jared
Tranquility.
Originally posted by RODNEYTROTTER View Post
It's actually 94, well atleast for my rep.... 2179 = rep power 23.

---------- Post added at 05:00 PM ---------- Previous post was at 04:56 PM ----------




Create new vb project, remove all source and add that, then add two textboxes and a button... and


:wub:


so what, is this set up so if i type in rep power of 8 it will give me: what ever and if i type in 2000 it will give me the rep power?:confused:
04-12-2011, 10:05 PM #8
Originally posted by iKeep View Post
so what, is this set up so if i type in rep power of 8 it will give me: what ever and if i type in 2000 it will give me the rep power?:confused:


Sure will.
04-12-2011, 11:57 PM #9
Jared
Tranquility.
Originally posted by RODNEYTROTTER View Post
Sure will.


thanks!:dance:Winky Winky:carling:

---------- Post added at 06:57 PM ---------- Previous post was at 05:06 PM ----------

Originally posted by RODNEYTROTTER View Post
It's actually 94, well atleast for my rep.... 2179 = rep power 23.

---------- Post added at 05:00 PM ---------- Previous post was at 04:56 PM ----------




Create new vb project, remove all source and add that, then add two textboxes and a button... and


:wub:



okay i got debug errors? it wouldnt even load it up cause there is not source file?:confused::cry:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo