By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,275 Members | 1,990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,275 IT Pros & Developers. It's quick & easy.

Getting property settings for controls in the immidiate window in VB2005

P: n/a
Joe
I am trying to get information on controls on my multi form Visual Basic
2005 project.
Any time I type such things as "? frmMyForm1.visible" in the immediate
window after I pause the program, I get the error "Unable to evaluate
expression.". This happens with any of the other controls on any of the
forms.
What am I doing wrong, and how do I go about correcting the problem. In VB6
I used to be able to get information on any control on any form by simply
pointing to the form and the control by typing "? MyForm1.visible" and get a
True or False reply.
In VB2005 typing things like "? MyForm2.cmdButton1.Text" always gives me the
"Unable to evaluate
expression." error. I read some place that forms and controls on form need
to be declared with a Dim statement. How does one go about declaring Forms
and Controls such as Text boxes and buttons, and where? Do they have to be
declared in a class module? Can someone point me to a few examples please?

Any help will be greatly appreciated.
Thanks


Apr 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you're using VS2005, just hover the mouse of the the object in
question and one of the debugging visualizers will appear that allows
you to see all the properties of the object. You can also set up a
watch.

Apr 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.