1 Attachment(s)
[RESOLVED] How to keep the command button pressed?
Hi Guys!
I really need your help. My form is shown in the attached file. How will a keep the command button for bold, italic and underline pressed once a user clicks on it ones? and back to unpressed when clicked for the second time. or maybe perhaps change the color background of the command button just like in MS Office 2007.
Would you help me please? Thank you.
Regards,
BarberCut
Re: How to keep the command button pressed?
Use a CheckBox control with the Style property set to Graphical. The ToolBar control can also do this but it doesn't look like you're using one.
Re: How to keep the command button pressed?
change the caption of the button to suit
in the click event
commandbold.font.bold = not commandbold.font.bold
Re: How to keep the command button pressed?
Hi DigiRev!
Thank you. I tried it but the only difference with the command button is the type of control. It looks the same but I still can't make it stay in pressed mode.
Hi westconn1!
Thank you. What do you mean, change the caption of the button to suit in the click event? I'm sorry but I don't understand.
Thank you.
Regards,
BarberCut
Re: How to keep the command button pressed?
Quote:
Originally Posted by DigiRev
Use a CheckBox control with the Style property set to Graphical.
Did you try this? (This is in place of the command button)
1 Attachment(s)
Re: How to keep the command button pressed?
Here is an example including what I think westconn was telling you.
Re: How to keep the command button pressed?
Thank you so much guys! I appreciate your help.