|
-
Nov 15th, 2000, 03:20 AM
#1
Thread Starter
Member
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!
-
Nov 15th, 2000, 04:37 AM
#2
Addicted Member
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
-
Nov 15th, 2000, 12:37 PM
#3
Thread Starter
Member
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
-
Nov 15th, 2000, 12:56 PM
#4
Addicted Member
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
-
Nov 15th, 2000, 01:09 PM
#5
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|