Getting property settings for controls in the immidiate window in VB2005

J

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
 
C

Chris Dunaway

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top