[Help] Binding button to textbox

Posts 1–3 of 3 · Page 1 of 1
[Help] Binding button to textbox
Hi guys, im building a trainer in vb.
I have everything working, except for my stats editor.

i have a textbox and a button.
textbox is to enter the stats you want to change, and the button to apply them.
I feel like such a dumbass asking this xD

here's a piece of code:
Code:
Private Sub Button2_Click() Handles Button2.Click
        string1 = readdll("cshell.dll")
        string2 = "&H" + Hex(string1 + &HCC19920)
        Call YGLTYADCXJ(string2, ??, 4)
        TextBox1.Text = ??
    End Sub
the ?? stands for the value you want it changed to in the textbox..
Anyways, i hope i made clear what my problem is..
if not, please let me know xD
Code:
Private Sub Button2_Click() Handles Button2.Click
        string1 = readdll("cshell.dll")
        string2 = "&H" + Hex(string1 + &HCC19920)
        Call YGLTYADCXJ(string2, Textbox1.Text, 4)       
    End Sub
You better use Val(Textbox1.Text) or a NumericUpDown.

Code:
        Call YGLTYADCXJ(string2, Val(Textbox1.Text), 4)
Code:
        Call YGLTYADCXJ(string2, NumericUpDown1.Value, 4)
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us