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

    Question A picture on a button

    How can I put a picture on a button from ny code?
    What is the function to load the picture?

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    1.) Set BackgrounImage property of the button. It is property of the button and you can set it either in design time or in run time...

    2.) You can use Image class... It has static member Image.FromFile()...

    Martin

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    Hi, Rye
    I have attached the zip file which will load the picturebox image

    Paresh
    Attached Files Attached Files

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