CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2000
    Posts
    264

    Adding a bitmap to a button

    Is there a way to make the picture you add to a command button(via the Picture property) to appear to the left of the text on the button? Or do I need to paint a Picturebox on the button and paste it that way? Currently, when I assign a picture to the button, it places it above the text on the button.




  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Adding a bitmap to a button

    add picture ontop of the button or make a active control and make your own button


  3. #3
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Adding a bitmap to a button

    With VB 6 there is an easier way. Set the buttons style = 1 - Graphical and choose a picture for the picture property.

    Sometimes simpler can be better.

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  4. #4
    Join Date
    Jan 2000
    Posts
    264

    Re: Adding a bitmap to a button

    I think you might have mis-read my post. I have already done that.


  5. #5
    Join Date
    Jan 2000
    Posts
    264

    Re: Adding a bitmap to a button

    Actually, I added the Component Microsoft Forms 2.0 Object library and used the command button that comes with that. It has 8 or so PicturePosition properties that will place the picture anywhere on the button.



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

Featured