Icons and Labels on Command Button at the same time

tmort

Registered User.
Local time
Today, 12:22
Joined
Oct 11, 2002
Messages
92
I'd like to have both text and an icon on a command button on a form.

I've tried to add a label to a button with an icon but the label is underneath and doesn't show through.

Is there some way of having both?

Thanks in advance and happy holidays
 
tmort,

A work-around might be to create your command button.
Create a label with your desired caption on it.
Place the label where you want on the command button.
Highlight the label; Format --> Bring To Front
Highlight the command button; Format --> Send To Rear

hth,
Wayne
 
tmort,

Well that didn't work real well. Every time you depress the
command button, it gains focus and covers up the label.

I did use an unbound text box, default value is desired caption
and did a set-focus to it in the event procedure for the command
button. This seems to work OK.

Good luck,
Wayne
 
Icon and Text on a Command Button

Thanks,

I'm pretty new to VB so what is the syntax for the setfocus in an event procedure.

In my event procedure I will just be calling a macro.

Thanks again

Tom
 

Users who are viewing this thread

Back
Top Bottom