Re: Something eats next click after click on ToolStripButton



Hi Linda,

The dialog is displayed by a third-party ActiveX control so I don't know the
details of how it is displayed. After it comes up the first mouse click has
no effect but the second click does what it should do. This is true even
when the first click is on the desktop rather than on the dialog. When the
dialog appears it seems to have focus and I can tab around its controls with
the keyboard but it still shows no reaction to the first click. It behaves
exactly as if the toolstrip button captures the mouse when clicked and then
releases it at the next click.

I am inclined not to blame the ActiveX control but if you wanted to follow
it up you could download the evaluation version of WSpell from
wintertree-software.com.

Bill


"Linda Liu" wrote:

Hi Bill,

Based on my understanding, you have a form which contains a MenuStrip and a
ToolStrip and a method. Clicking one menu item in the MenuStip or one button
in the ToolStrip will execute this method.

From this method, you open a modal dialog. When you click the menu item, all
works well, i.e. the modal dialog appears and gets the focus.

When you click the ToolStrip button, the modal dialog appears but the
problem is that the dialog doesn't get the focus. Even if you click the
dialog, it doesn't get the focus. If I'm off base, please feel free to let
me know.

I perform a test by creating a Windows Application project in C#, but don't
reproduce the problem in my test. I show the dialog by calling the
Form.ShowDialog method. The modal dialog appears and always gets focused
whether I click the mneu item or the ToolStrip button in my test
application.

In your application, since the dialog is shown modally, it should get
focused when it is shown. Could you tell me how you show the modal dialog in
your application?

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.

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.



.