Modal dialog issues

  • Thread starter Thread starter greg
  • Start date Start date
G

greg

I've got an application, and I'm poping up a form modally using

TestForm aForm = new TestForm();
aForm.ShowDialog(this);

It works fine.

If I click outside the area of the modal form on the other form, it does not
give the other form focus. Good! It also does an error beep once, also good.
However, it causes the taskbar button and the title bar of the modal form to
flash rapidly. And not once or twice, but 20-30 times, and clicking on the
modal form or even typing in a text box in the modal form doesn't make it
stop, it just seems to stop after an arbitrary amount of time.

Am I doing this modal form properly, and if so, why is this happening? It's
rather annoying. A simple beep and flashing the button/titlebar 3 times like
most other windows applications would be fine :)

Thanks,
Greg
 
TestForm aForm = new TestForm();
aForm.ShowDialog(this);

[...]
However, it causes the taskbar button and the title bar of the modal
form to
flash rapidly. And not once or twice, but 20-30 times, and clicking on
the
modal form or even typing in a text box in the modal form doesn't makeit
stop, it just seems to stop after an arbitrary amount of time.

Am I doing this modal form properly, and if so, why is this happening?

There's nothing wrong with the code you posted. So yes, that part is
being done properly. On the other hand, the behavior you describe
definitely isn't normal. So the "why" of why it's happening must be in
the code you didn't post.

You should post a concise-but-complete sample of code that reliably
demonstrates the problem. Only with that would anyone be able to possibly
figure out what needs to be fixed.

Pete
 
Hi Greg,

How about this issue now? Have you managed to create a sample project for
this issue? 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.
 
Back
Top