Results 1 to 3 of 3

Thread: Background Picture in Command Buttton

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    27

    Question Background Picture in Command Buttton

    Dear Experts,

    I have a command button in one of my forms. Its width is about 8000 and its height is around 800. I tried to insert a background (jpeg) picture and found that the pictures width doesn't match with the command button's width.

    Can somebody guide me to stretch the picture to match the command button's width and height.

    Many Thanks
    Eshu

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: Background Picture in Command Buttton

    why don't u stretch the picture itself.

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: Background Picture in Command Buttton

    This quote from MSDN may be helpful.

    To resize your picture I'd suggest loading it in MS Paint and using Image\Attributes to check the size then Image\Stretch to change the size to what you need.

    Twips Explained

    By default, all Visual Basic movement, sizing, and graphical-drawing statements use a unit of one twip. A twip is 1/20 of a printer’s point (1,440 twips equal one inch, and 567 twips equal one centimeter). These measurements designate the size an object will be when printed. Actual physical distances on the screen vary according to the monitor size. "Changing an Object’s Coordinate System" describes how to select units other than twips.
    This world is not my home. I'm just passing through.

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