Results 1 to 5 of 5

Thread: form flickers on resize

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Texas
    Posts
    56
    I was wondering if anyone has a quick fix for this. I've got a form that operates in two different sizes. Double clicking the title bar serves as the toggle between the two. Basically I'm checking to see if the form has been maximized and if so toggle to the other window size. Problem is I'm running into a lot of flicker.

    Is there a way in VB stop this resize flicker?

    Thanks!

  2. #2
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Question Flickers

    Can we have a little more information? What exactly is it that flickers? Is it just the form, or the controls too (some, or all of the controls?) What does your coding do when the user resizes the Form?

    If it is a normal VB form, what event do you respond to when the user double-clicks on the titlebar. I don't know of any events that are triggered for that.

    If you double-click on a window's titlebar, the form automatically toggles between Maximized and Normal, if you try to set the form size at the same time, I can imagine that some flickering would occur.

    Shrog

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Texas
    Posts
    56
    I'm afraid the later is true. When the user double clicks the title bar, the form is maximized. In the Form_Resize event is the code to recognize if the form is vbMaximized and if so set and activate the new size in a vbNormal window.

    So in essence the form is maximized, then returns to normal, then is resized as coded. All the checking and resizing is done in the resize event.

    I think I might be looking for an event that fires before the form is maximized. Then turn off the form refreshing while all the resizing is going on.... I just don't know how to do this!!!

    Any ideas?

    Freefly


  4. #4
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Question

    I might be missing something, because I do not quite understand what the problem is.

    As far as I can figure out, you want the form to be normal. When the user double-clicks the Titlebar, the form must maximize. When the user double-clicks the title bar again, the form must return back to normal.

    The form already does this automatically. You do not need to add any code at all.

    Shrog

  5. #5
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373

    Question But?

    Sorry, but as Shrog said, what's the point?

    Can't just the
    Code:
    form.MaxButton = False
    do the trick?

    Just Wondering...

    Saludos...
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

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