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

    Refreshing a Picture Box.



    I'm having a problem with text being erased in a Picture Box when another

    form rests on top of the form containing the picture box. Is there some code I need to place in the GetFocus event to redraw the Picture Box? I haven't been able to find an answer in any of my books...



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

    Re: Refreshing a Picture Box.



    Hi


    You need to take a look at the help file for the AutoRedraw

    property of the picturebox.


    e.g.


    Picture1.AutoRedraw = True

    Picture1.Print "This is a test"


    Regards


    Chris Eastwood


    CodeGuru - the website for developers

    http://www.codeguru.com




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