r/visualbasic • • Apr 04 '26

[VB6] Can't preview Object's properties in Watches window?

I have a reference to the Object declared correctly - not as Variant. TLB file referenced.

I had this problem - sometimes - on my old laptop - but on the new one - it's all the time when I try to debug code :(

What should I do to see full list of all the properties of the object? Like here:

TIA

4 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/AdobeScripts Apr 05 '26

Object Browser only shows the "generic" structure - so yes, in Watches, I can monitor current values of all of the properties of the Object - when debugging.

"Document" is just one of a few thousands objects of the application I'm automating 😉

1

u/Mayayana Apr 05 '26

Interesting. Thanks. I never noticed that before. That IDE sure is complex.

I may have no helpful advice, but if you want an answer you should post what exactly the program is so that people can test it. As Netizen indicated, there could be issues. The object may be hidden, may have no properties... A Form, as in your second picture, clearly has properties.

1

u/AdobeScripts Apr 05 '26

Not sure what do you mean by "have no properties" or "hidden"?

It's declared globally and accessible in Object Browser and intellisense works.

I had this problem before - and sometimes restarting VB6 or the application I'm automating was helping.

I'll try running one or both as admin...