[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.
change the caption of the button to suit
in the click event commandbold.font.bold = not commandbold.font.bold
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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.