I need to create a user control which behaves as a checkbox but appears as an ordinary button with icon+text. Clicking the button would toggle the state. The button's icon and text would both change to reflect the state.
Ideally, in the IDE I would like the property grid of the user control to expose both states of both the icon and the text. I expect someone experienced with user controls and custom property grids could spin this up in a couple minutes. Any takers?
Thanks.
You can use the UltraCheckEditor to get that. Change the Style to Button. Set the Text property and the Appearance.Image property. Use the CheckedChanged event to change the text and image.
Hi,
Have you tried Amiram’s suggestion. I have uploaded a sample illustrating it.
Let me know if you need any help.
Regards,
Stefaniya