471,122 Members | 1,202 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

VB: How to change command captions AND how to create objects after compilation ?

Hello, everyone.

I'm currently writing a program that will create parts of the form depending
on the data it reads from a disk. For example, rather than ME creating the
form with five radio/option boxes, I would leave the program read the file.
If it reads 2, then it will only create two option boxes.

How can this be done?

Also, I noticed that VB won't let me change the captions of command buttons
after I have run the program. What I'd like to do, after reading the same
file, is change the language of the command buttons, depending on what it
reads from the file.

Again, how can this be done.

Jul 17 '05 #1
1 2257
You didn't mention what version of VB you were using, but up until VB 6.0
the caption of a command button can be changed in code after the program is

command1.caption = "Change"

Hope that helps
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.