Switch Theme:

Are there any Visual Basic masterminds out there?  [RSS] Share on facebook Share on Twitter Submit to Reddit
»
Author Message
Advert


Forum adverts like this one are shown to any user who is not logged in. Join us by filling out a tiny 3 field form and you will get your own, free, dakka user account which gives a good range of benefits to you:
  • No adverts like this in the forums anymore.
  • Times and dates in your local timezone.
  • Full tracking of what you have read so you can skip to your first unread post, easily see what has changed since you last logged in, and easily see what is new at a glance.
  • Email notifications for threads you want to watch closely.
  • Being a part of the oldest wargaming community on the net.
If you are already a member then feel free to login now.




Made in us
Boosting Ultramarine Biker





Lowell, MA

I need help writing assignment statements.

I need a button to change a label.
   
Made in us
Kid_Kyoto






Probably work

Uh, it's been a while, but in the button.OnClick function that gets autogenerated when you doubleclick the button in the design view, you just put in <name of the label>.text = "text".

So, like, I have button btnTacos and label lblLunch

sub btnTacos.OnClick( stuff about event args )
lblLunch.text = "I had tacos for lunch."
end sub

That should change the text of lblLunch to "I had tacos for lunch."

It's been goddamn near a decade since I've looked at VB, but I'm pretty sure that's more or less the theory.

Speaking of which, this is kind of basic for VB. Not to denigrate you or anything, but if you don't get it, you might want to talk to your professor.

This message was edited 1 time. Last update was at 2012/09/20 17:44:17


Assume all my mathhammer comes from here: https://github.com/daed/mathhammer 
   
Made in us
Boosting Ultramarine Biker





Lowell, MA

Thanks! it worked.
   
 
Forum Index » Off-Topic Forum
Go to: