Results 1 to 2 of 2

Thread: Change button picture after adding programmatically

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    Change button picture after adding programmatically

    Alright, i've created a button using code from word custom toolbar but now i want to change the picture of the button. I have a 16x16 bmp saved at c:\vba\toolbar\custom.bmp. how can i use that bmp for my button picture?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Change button picture after adding programmatically

    Use the following synthax to load a picture

    VB Code:
    1. yourButton.Picture = LoadPicture("c:\vba\toolbar\custom.bmp")
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width