[Help] Injector Code

Posts 1–11 of 11 · Page 1 of 1
[Help] Injector Code
Uhh I can't remember how to do this :

Code:
Public Class Form2_Load
        LabelX1.Text = "Welcome" + (Form1.TextBoxX1.Text) + "to the Injector"
    End Class
End Class
Uhm it says LabelX1 needs a declaration.. Anyone?
dude did u change the NAME of labelx1.... if not then type label1 instead of labelx1
Lol no.. LabelX1 is a different label. Its an add-on label. I got it from "DotNetBar for Windows Forms". But i'll try using the normal label then..
yeah that would be a good idea
or try labelx1 = label1
decalre that
Nope doesnt work
+ = Addition , Integer Not string

Use

LabelX1.Text = "Welcome" & (Form1.TextBoxX1.Text) & "to the Injector"
Uhh so how do i do it nextgen?
You did it

Code:
LabelX1.Text = "Welcome" + (Form1.TextBoxX1.Text) + "to the Injector"
Which is litterly trying to Add (mathematically) Welcome + Contents of Text Box 1 + To the Injector, VB looks for a Integer in that scenario

That would work if you did this

Code:
Dim I as Integer = Textbox1.Text '(tell VB you will be using a integer in the contents of textbox1)
Label1.Text = 1 + Textbox1.text + 4
Which will result in 1 + (integer) + 4

In your case you are using "Words" ("String")

So it should be

Code:
LabelX1.Text = "Welcome" & Form1.TextBoxX1.Text & "to the Injector"
(no need for the () Parenthesis)
Which reads

Label1.Text = The words appened

Welcome & (and) Textbox1.text &(and) To the injector

Get it?
Quote Originally Posted by NextGen1 View Post
You did it

Code:
LabelX1.Text = "Welcome" + (Form1.TextBoxX1.Text) + "to the Injector"
Which is litterly trying to Add (mathematically) Welcome + Contents of Text Box 1 + To the Injector, VB looks for a Integer in that scenario

That would work if you did this

Code:
Dim I as Integer = Textbox1.Text '(tell VB you will be using a integer in the contents of textbox1)
Label1.Text = 1 + Textbox1.text + 4
Which will result in 1 + (integer) + 4

In your case you are using "Words" ("String")

So it should be

Code:
LabelX1.Text = "Welcome" & Form1.TextBoxX1.Text & "to the Injector"
(no need for the () Parenthesis)
Which reads

Label1.Text = The words appened

Welcome & (and) Textbox1.text &(and) To the injector

Get it?
Uhm. Sort of... Lol... Wait gimme a sec. I need a translator =P.

Okay i'll just follow that.. Thanks NextGen
Oh damn it didn't work. Can you teamview me later NextGen if its possible? I'm busy right now. GOtta get off the PC for a bit.
Pm me your info, Ill do it now
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?