PDA

View Full Version : Programming in VisualBasic help plz



Bobmuhthol
06-09-2005, 03:23 PM
First off, a tutorial would be excellent because I never was too exposed to it but now I forget how to do just about everything I learned.

Specifically, I need to know how to change a label's text. Like..

LblCS becoming X + Y + Z

06-09-2005, 03:58 PM
While it's running, to change the text variable or just the name, like text1? Because that would be pretty simple.

06-09-2005, 04:05 PM
Uh... if you want to change the actual label, just bring up the properties window and I think it's either the "Name" or "Label."

If you want to change the text while it's running, something simple like:

(click) for um, command1.click

IF TEXT1.TEXT = CLEAR THEN TEXT1.TEXT = "X"

and then throw something in form1.constant like

IF TEXT1.TEXT = "X" THEN IMAGE1.STRETCH = TRUE or something

Be all like back in command1.click

IF TEXT1.TEXT ="X" AND NOT = "XY" THEN TEXT1.TEXT = "XY" and shit

so in form1.constant you'd be all like

IF TEXT1.TEXT = "XY" THEN TIMER1.INTERVAL = 2-0230293

then you'd be slick and be like:

COMMAND1.CLICK

IF TEXT1.TEXT = "XY" THEN DO
BEEP
LOOP

that would be kind of dumb, but something like that, and so on

edited so that this might actually work, should you be so bored

[Edited on 6-9-2005 by Stanley Burrell]

Artha
06-09-2005, 04:27 PM
label.caption IIRC.

06-09-2005, 04:39 PM
oh shit, a label, not a textbox, my bad.

what artha said.

Bobmuhthol
06-09-2005, 05:56 PM
Oh nevermind I'm just really dumb. I seriously forget everything.

It's just LblCS = whatever

WTF didn't I try that to begin? :(

HarmNone
06-09-2005, 06:35 PM
What'cha making, Bob?

HarmNone, the ever curious :)

Latrinsorm
06-09-2005, 08:25 PM
Originally posted by HarmNone
What'cha making, Bob?Just a guess. (http://forum.gsplayers.com/viewthread.php?tid=14792)

Bobmuhthol
06-09-2005, 08:39 PM
I'm trying to write a CS calculator, but unfortunately I don't have a real formula for it or Kranar's old BASIC source code so I'm writing it from scratch and fucked it up royally.

http://forum.gsplayers.com/viewthread.php?tid=15266