Graphical Button again

S

simon

Hi
Dmitry Streblechenko, and all:

I try the following ways to add picture to the button, but it does not
affect.
why?

The Codes:
-------------
Dim picPicture As IPictureDisp
Set picPicture = stdole.StdFunctions.LoadPicture("D:\add.bmp")
Set objNewButton = objNewBar.Controls.Add(msoControlButton, 1, , , True)
objNewButton.Caption = "&Save Mail"
Clipboard.SetData picPicture, vbCFBitmap
objNewButton.PasteFace
'objNewButton.Picture = picPicture
'MsgBox "Picture Loaded"
 

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

Top