CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Location
    AZ
    Posts
    201

    [RESOLVED] Restore window position

    When my app launches I want to restore the window position to the location that it was when the app last terminated. I can restore the location but the window flickers when it is moved from the location that Windows placed it to my location. How can I avoid the flicker?

    Thanks in advance,
    Hal
    up·grade (up'gräd'),
    to take out old bugs
    and put in new ones.

  2. #2
    Join Date
    May 2011
    Location
    Washington State
    Posts
    220

    Re: Restore window position

    If you're setting it's location in the Load event, try setting the location in the form constructor instead... then it should only paint once at the new location.

  3. #3
    Join Date
    Feb 2001
    Location
    AZ
    Posts
    201

    Re: Restore window position

    Thank you for the help. It works perfectly.

    Regards,
    Hal
    up·grade (up'gräd'),
    to take out old bugs
    and put in new ones.

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