Results 1 to 3 of 3
  1. #1
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,006
    My Mood
    Angelic

    [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

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    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)



  3. #3
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,006
    My Mood
    Angelic
    ok thanks man, ill report back if it worked

    EDIT: worked, thanks allot
    here is a link to where i released the trainer, check out if you want
    https://www.mpgh.net/forum/142-call-d...r3zdude9*****ml
    Last edited by Archangel; 05-10-2010 at 12:56 PM.

Similar Threads

  1. [Help Request] Help binding attacks
    By tenkan in forum Vindictus Help
    Replies: 7
    Last Post: 08-05-2011, 12:47 AM
  2. [Help]Save Contents of TextBox[Solved][Closed]
    By bayley60 in forum Visual Basic Programming
    Replies: 2
    Last Post: 07-17-2010, 03:06 PM
  3. [Help]Change Button Text[Solved]
    By [PA]nts in forum Visual Basic Programming
    Replies: 7
    Last Post: 06-29-2010, 02:48 PM
  4. [Help]Record Button Down Length
    By ppl2pass in forum Visual Basic Programming
    Replies: 10
    Last Post: 05-02-2010, 07:46 AM
  5. [Help] searching with a textbox.
    By trevor206 in forum Visual Basic Programming
    Replies: 8
    Last Post: 12-05-2009, 05:04 AM