How to set a button's state to pressed state?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you set a button's state to a pressed state. This is similar to the
BOLD button in ms word, if a word is bold, the state of the bold icon is
pressed.

I already found one solution using a toolbar control but i'm looking for a
solution that doesn't use the toolbar.

Thanks in advance.
 
Edgar,

That is not something standard.

What I would do to fulfil your problem is setting the state of the button in
its "tag" property. And set based on that the flatstyle to system.standard
or system.flat.

I hope this helps,

Cor
 
Hi,

Thanks, this suggestion is very much ok with me...it serves its purpose.
Thanks again :)
 
edgar said:
How do you set a button's state to a pressed state. This is similar to the
BOLD button in ms word, if a word is bold, the state of the bold icon is
pressed.

Place a checkbox on the form and set its 'Appearance' property to 'Button'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top