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

    Adding a pic to a picbox



    I am having trouble adding a bitmap to a picturebox with pre determind size , i want to resize the picture so that it fits in the picture box, with out resizing it in a paint progarm. any ideas?

  2. #2
    Join Date
    Jan 1999
    Posts
    7

    Re: Adding a pic to a picbox



    Hi,

    I have got a solution for fitting ur Image into a picture box.

    The picture box will resize to the height of the Image.


    There is a property in the Picture Box named AutoDraw.


    If PictureBox.AutoDraw=True,

    then the Picture box resizes to the Image co-ordiantes.

    else

    It does not re-size.

    end if


    Hope this solves ur above problem


    Regards

    Bimlesh

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