• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Active Form and Floating Forms Management

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?
0
tsmolskow
Asked:
tsmolskow
  • 2
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Are you using an MDI interface or are these all seperate forms in the same EXE?
0
 
tsmolskowAuthor Commented:
All seperate forms in the same EXE
0
 
tsmolskowAuthor Commented:
I figured it out, when I would instantiate the forms I was using the following code:

         FloatingBar floatBar = new FloatingBar();
         floatBar.Show(this);  

I changed it to:

            FloatingBar floatBar = new FloatingBar();
            floatBar.Show();  

And it works fine.

So now my question is - do I get 500 points for answering my own question? 8)
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Yes you do.

Post a request here for a PAQ/Refund:
http://www.experts-exchange.com/Community_Support/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now