all groups > visual studio .net debugging > november 2007 >
You're in the

visual studio .net debugging

group:

Open Form Flickering



Open Form Flickering Greg
10/18/2007 12:15:02 PM
visual studio .net debugging: I have three forms, a MDI Parent and 2 MID Child forms.

When i initially load my MDI Parent with the initial MDI Child, everything
looks fine. But, when I click on a button in my first MDI Child that opens
another MID Child, the new form flickers and jumps. It seems my MDI Child is
opening in Normal Mode possibly and then being MAXIMIZED, which is what I
specified for the form to do. Is there a way to open the form in a
non-visible manner and then make it visible after eveyrthing has been
rendered. It just looks a bit tacky for the form to jump around and flicker
the way it does.



RE: Open Form Flickering jetan NO[at]SPAM online.microsoft.com (
10/19/2007 4:18:45 AM
Hi Greg,

Yes, I can reproduce this behavior.

Further reseach shows that this flicker is caused by twice paint behavior
of MDI forms in VS2005. The bug below reported this issue:
"MDI client forms with FormWindowState.Maximized paint twice upon calling
Form.Show()"
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedba
ckID=96015

I have tried many ways to work around it, but all failed. For example, I
added a timer in the application and delayed the showing of the form after
several seconds, but the flicker still exists. Currently, we have no good
solution to workaround this problem yet.

I would recommend you to submit a bug feedback in the link below. This
feedback will be routed to the Winform dev team for consideration:
https://connect.microsoft.com/VisualStudio/

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: Open Form Flickering Greg
10/19/2007 4:20:00 PM
OK, I gave your code a try and unfortunately it doesn't give me the desired
result. One thing I did notice though is that even though I set the Maximize
and Minimize buttons to false, they still appear, although you can't use
them. I also noticed that the button between them allows the user to size the
window, which is something I don't want. 1. How can i HIDE the Max, Min and
other buttons. I used the frm.FormBorderStyle =
Windows.Forms.FormBorderStyle.None statement and I still see are reserved for
the child form caption within the parent form. How can I hide this entire
caption for the child form?

[quoted text, click to view]
RE: Open Form Flickering Greg
10/19/2007 4:49:02 PM
One more questioin related to the code snippet you sent me.

I usually open my forms as such.

Form1.MDIParent = me.MDIParent
Form1.Show

Where you defined an object named frm.

dim frm as NEW Form1
frm.MDIParent = Me.MDIParent
frm.show

Now, I find that both ways work. Is there any advantage do doing it either
way?

[quoted text, click to view]
RE: Open Form Flickering jetan NO[at]SPAM online.microsoft.com (
11/2/2007 3:32:52 AM
Hi Greg,

Have you reviewed my reply to you? Does the sample make sense to you? If
you still need any help, please feel free to feedback, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

AddThis Social Bookmark Button