Home All Groups Group Topic Archive Search About
Author
7 Feb 2006 1:46 AM
Lloyd Dupont
I have a dialog where I stack multiple panels.
Depending on some flags I bring one them to front.
Problem is, as long as the dialog has not been displayed, I cannot reorder
my panels !
So when I show it (with ShowDialog()) it's alway the first panel in front of
the other!

Even though I call
aPanel.BringToFront();
or Controls.SetChildIndex(aPanel, 0)

what could I do?
I think, just after initialize component I will remove all panel and add
them on demand.
but I wonder if there is any better solution...

Any tips?

Author
7 Feb 2006 1:54 AM
Gabriel Magaña
Re-parent forms instead of using panels?

Show quoteHide quote
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%23wPech4KGHA.3936@TK2MSFTNGP12.phx.gbl...
>I have a dialog where I stack multiple panels.
> Depending on some flags I bring one them to front.
> Problem is, as long as the dialog has not been displayed, I cannot reorder
> my panels !
> So when I show it (with ShowDialog()) it's alway the first panel in front
> of the other!
>
> Even though I call
> aPanel.BringToFront();
> or Controls.SetChildIndex(aPanel, 0)
>
> what could I do?
> I think, just after initialize component I will remove all panel and add
> them on demand.
> but I wonder if there is any better solution...
>
> Any tips?
>
Are all your drivers up to date? click for free checkup

Author
7 Feb 2006 1:58 AM
Lloyd Dupont
Yeah, I though of that.
it's when I realized there was some unexpected problem ;-)

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
Show quoteHide quote
"Gabriel Magaña" <no-spam@no-spam.com> wrote in message
news:%23f17zl4KGHA.3496@TK2MSFTNGP14.phx.gbl...
> Re-parent forms instead of using panels?
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:%23wPech4KGHA.3936@TK2MSFTNGP12.phx.gbl...
>>I have a dialog where I stack multiple panels.
>> Depending on some flags I bring one them to front.
>> Problem is, as long as the dialog has not been displayed, I cannot
>> reorder my panels !
>> So when I show it (with ShowDialog()) it's alway the first panel in front
>> of the other!
>>
>> Even though I call
>> aPanel.BringToFront();
>> or Controls.SetChildIndex(aPanel, 0)
>>
>> what could I do?
>> I think, just after initialize component I will remove all panel and add
>> them on demand.
>> but I wonder if there is any better solution...
>>
>> Any tips?
>>
>
>
Author
7 Feb 2006 1:58 AM
Lloyd Dupont
never mind: bug in my code!
I know, it's amazing ;-)

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
Show quoteHide quote
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%23wPech4KGHA.3936@TK2MSFTNGP12.phx.gbl...
>I have a dialog where I stack multiple panels.
> Depending on some flags I bring one them to front.
> Problem is, as long as the dialog has not been displayed, I cannot reorder
> my panels !
> So when I show it (with ShowDialog()) it's alway the first panel in front
> of the other!
>
> Even though I call
> aPanel.BringToFront();
> or Controls.SetChildIndex(aPanel, 0)
>
> what could I do?
> I think, just after initialize component I will remove all panel and add
> them on demand.
> but I wonder if there is any better solution...
>
> Any tips?
>
Author
7 Feb 2006 6:25 PM
Peter Oliphant
> never mind: bug in my code!
> I know, it's amazing ;-)

Wow! Of course this has never happened to me personally.....ROFL

[==P==]

Show quoteHide quote
"Lloyd Dupont" <net.galador@ld> wrote in message
news:eF4FIo4KGHA.720@TK2MSFTNGP14.phx.gbl...
> never mind: bug in my code!
> I know, it's amazing ;-)
>
> --
> Regards,
> Lloyd Dupont
>
> NovaMind development team
> NovaMind Software
> Mind Mapping Software
> <www.nova-mind.com>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:%23wPech4KGHA.3936@TK2MSFTNGP12.phx.gbl...
>>I have a dialog where I stack multiple panels.
>> Depending on some flags I bring one them to front.
>> Problem is, as long as the dialog has not been displayed, I cannot
>> reorder my panels !
>> So when I show it (with ShowDialog()) it's alway the first panel in front
>> of the other!
>>
>> Even though I call
>> aPanel.BringToFront();
>> or Controls.SetChildIndex(aPanel, 0)
>>
>> what could I do?
>> I think, just after initialize component I will remove all panel and add
>> them on demand.
>> but I wonder if there is any better solution...
>>
>> Any tips?
>>
>
>
Author
7 Feb 2006 9:24 PM
Gabriel Magaña
> Wow! Of course this has never happened to me personally.....ROFL

Yeh, me neither... this danged VS2005 is sooo dang buggy!

Oh... wait... nevermind! LOL

Bookmark and Share