CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Nov 2009
    .net 3.5 csharp 2008 developer

    Question [SOLVED] Unwanted behaviour, workaround?


    New to the forum, and... yes I have a problem

    The issue I'm having, I'll try to describe it as good as I can.

    Basically, I have two (or more) forms, each having a toolstrip with buttons on them. If I click on a button on a toolstrip that is on a window that doesn't have focus at the moment, the button itself is never pressed, but the window gets focus.
    Simply put, I need to doubleclick on the button for it to trigger the click event, but only if the window itself did not have focus.

    I'm wondering if there is a workaround for this behaviour? Or did I miss some not so obvious property somewhere?
    Last edited by ixilom; November 15th, 2009 at 02:44 AM. Reason: Changed title to contain [SOLVED]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.