Follow us on Twitter!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Wednesday, April 16, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 78
Guests Online: 77
Members Online: 1

Registered Members: 82803
Newest Member: Tired_of_being_ignorant
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Need help. Displaying variables inside of a label


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-02-06 09:27
Hey guys,

Im new to vb so i just have a question to ask

I was just wondering how i can display a variable in a label.

I have put the script on the command buttin trying these to show the variable but none hav them have worked

Code
I tried  Label2.Caption = c




And

Code
Label3 = e




But none of them have done anything all i get is

'Caption' is not a member of 'System.Windows.Forms.Label'

Cheers,

Author

RE: Need help. Displaying variables inside of a label

Mr_Cheese




Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
Uber Elite
Posted on 02-02-06 10:48
first off, make sure you have the right name for the label.

secondly, make sure you Dim the variable.

Code

Dim word As String

word = "new label caption!!"

Label1.Caption = word







http://www.hellboundhackers.org/
Author

RE: Need help. Displaying variables inside of a label


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-02-06 11:46
I have
Author

RE: Need help. Displaying variables inside of a label

Mr_Cheese




Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
Uber Elite
Posted on 02-02-06 12:35
what version of VB are you using?


http://www.hellboundhackers.org/
Author

RE: Need help. Displaying variables inside of a label


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-02-06 22:25
vb.net
Author

RE: Need help. Displaying variables inside of a label


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-02-06 22:44
I don't have that much of experience working with vb.net and i don't like it but i think in vb.net it's not like
"Label1.caption" anymore, i think it's changed to sth like "Label1.text" just like a textbox.
again, i'm not sure but try it and see if it works Wink

GreyFox