Accessing the button state in code

Add-in Express™ Support Service
That's what is more important than anything else

Accessing the button state in code
Cannot get the state with published attribute 
Guest


Guest


Why can I not do this?

if adxOlInspectorCommandBar1.Controls[0].state = adxMsoButtonUp then

I would like to change the state from either 'down' or 'up' to 'up' or 'down'
Posted 05 Dec, 2005 06:40:21 Top
Guest


Guest


SOLVED!

if adxOlInspectorCommandBar1.Controls[0].AsButton.state = adxMsoButtonUp then
Posted 05 Dec, 2005 07:43:16 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Guest,

Absolutely right. Only a button has the State property.
Posted 05 Dec, 2005 07:57:55 Top