preventing only all child windows from poping up except one, how?

  • Thread starter Thread starter JBLi
  • Start date Start date
J

JBLi

Hi All,

I am trying to write a note taking program such that each note is
presented in it's own window form. The note forms are created dynamically.

Let say all the note windows are covered by another application's
windows. When I click on one of the note windows (partially covered), the
note window is brought up on the top -- THE OTHER note (child) windows are
ALSO brought to the top. That is not what I want. That is, I only want
the only one been clicked to be top most, the rest of the note windows to
stay behind.

Any one, please suggest a solution (C#) to allow only single child
window to popup when clicked, not the rest.


Thanks,

JB
 
That's because you define them as child windows. How do you define them, by the way? Using NativeWindow or just simple Forms?
You should make them popup (or overlap) windows. Basically independent windows, do not have the main form own them. I believe that should work..

regards
iulia
 
Hi Iulian,

Thanks for replying.

I am creating them as simple forms and allocate them with the New
keyword, of course. I actually never use NavtiveWindow class. Let me give
it a try. By the way, my current note form contains a richEdit control.
Wonder if this would be difficult if using NativeWindows.

Later,

JB

Iulian Ionescu said:
That's because you define them as child windows. How do you define them,
by the way? Using NativeWindow or just simple Forms?
You should make them popup (or overlap) windows. Basically independent
windows, do not have the main form own them. I believe that should work...
 
Hi,

It turned out that when I set the child forms' ShowInTaskBar property
"back" to true (default value) , the only child window brought up to the
front was the one been clicked, the rest of the child windows stay behind
(as this is what I really want).

I don't understand, why the ShowInTaskBar property has anything to do
with how/when the other child forms brought to front (when only one was been
clicked/gained focus)?

Any idea?


Thanks,

JB



Iulian Ionescu said:
That's because you define them as child windows. How do you define them,
by the way? Using NativeWindow or just simple Forms?
You should make them popup (or overlap) windows. Basically independent
windows, do not have the main form own them. I believe that should work...
 
Back
Top