Retrieve Style Name at Runtime


Is it possible to find out the Style name of a control at runtime?



Hello Michel,

Thank you so much for your quick answer. May I know why I am unable to locate this command in

I think I am still missing a lot of hidden commands. I would appreciate if you could enlighten me further. :slight_smile:


The first thing to look at is the page for the specific control you’re interested in.
That page will show the properties, events & methods specific to that control type.
And it will show inherited ones as well

Or in the IDE select the control, right click and at the bottom of the menu is "Help for " and that will take you to that page for the control

You can navigate through the superclasses as well to see if its a property / method / event that applies to all the subclasses of whatever the super class is as well

And you can use the search pane to find things like “Style” which takes you right to WebStyle
And at the bottom of that page it says “see also” webcontrol