Some days the easy stuff just aint so easy. :)
I just can't seem to get to the property for toogling the statebutton (ie checked). I'm using the ribbon mode, I have a group with a statebutton.
In code i'm trying to find the "checked" property.
utmToolbar.Tool[44].checked = false;
It's just not there to be found :(
Thanking you in advance,
Derek
The code "utmToolbar.Tool[44]" gives you an object of type ToolBase, which doesn't have a Checked property. Try casting this to a StateButtonTool object first.
In C#: ((StateButtonTool) utmToolbar.Tool[44]).Checked = false;
In VB.NET: DirectCast(utmToolbar.Tool(44), StateButtonTool).Checked = False
Thanks for the quick response.
Opps, I must be tired.... I was trying (StateButtonTool)utmToolbar[44].checked = false;
Anyway... thanks and have a great weekend.
-Derek