|
-
Nov 14th, 2000, 04:15 AM
#1
Thread Starter
Member
I need to change the font of labels while my program runs. My problem is that I don't know the name until an action happens. What I have tried ......
"lbl_" & txt_name.text & ".ForeColor=&H80&"
example of what this should then read is (lbl_MODEL_DESC.FORECOLOR=&H80)
...but I get syntax errors.
Help needed urgently .
Thanks
Bob
-
Nov 14th, 2000, 04:21 AM
#2
Hyperactive Member
Two ways:
Form1.Controls("Label1").ForeColor = &H80&
or you could have your labels in an array...
Label1(Index)").ForeColor = &H80&
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Nov 14th, 2000, 04:28 AM
#3
Thread Starter
Member
Thanks ThumblingDown, that Controls option is spot on.
That was A1 Sharon !!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|