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

    How to clear image in picture box



    Dear Sir,


    I would like clear a image in a picture box after showing that image when i click

    a button.


    Please Assist Me. Thank You.



  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to clear image in picture box



    Hi


    Try


    Set Picture1.Picture = Nothing ' where picture1 is the name of your picturebox


    Regards


    Chris Eastwood

    CodeGuru - the website for developers

    http://www.codeguru.com/vb



  3. #3
    Join Date
    May 1999
    Posts
    45

    Re: How to clear image in picture box



    If you have drawn picture yourself then Picture1.CLS.

    If you have loaded from a file then either Picture1.Picture = Nothing as chris suggested or Picture1.picture = LoadPicture("")



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