Active Form and Floating Forms Management

Posted on 2006-05-11
Last Modified: 2013-12-03
I have created a client project in C# with .NET 2.0.  My project has two main "Canvass" forms A and B with several floating palette forms.  I want the palettes to stay over the active canvass form, even when the user moves the palettes.  Right now the tool palettes appear over which ever canvass form has focus A or B, but when the tool palettes are moved then form A always regains the focus, which is not what I want.  I want the user to be able to move the palettes and not have the currently active canvas form lose focus.  What do I need to do?
Question by:tsmolskow
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    Are you using an MDI interface or are these all seperate forms in the same EXE?

    Author Comment

    All seperate forms in the same EXE

    Author Comment

    I figured it out, when I would instantiate the forms I was using the following code:

             FloatingBar floatBar = new FloatingBar();

    I changed it to:

                FloatingBar floatBar = new FloatingBar();

    And it works fine.

    So now my question is - do I get 500 points for answering my own question? 8)
    LVL 85

    Accepted Solution

    Yes you do.

    Post a request here for a PAQ/Refund:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now