|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Winform rants...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? 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? > Yeah, I though of that.
it's when I realized there was some unexpected problem ;-) -- Show quoteHide quoteRegards, Lloyd Dupont NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "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? >> > > never mind: bug in my code!
I know, it's amazing ;-) -- Show quoteHide quoteRegards, 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? > > never mind: bug in my code! Wow! Of course this has never happened to me personally.....ROFL> I know, it's amazing ;-) [==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? >> > >
Other interesting topics
Browse for folders dialog
Why can't you inherit System.Windows.Forms.Form? Closing form causes validation Creating a modal process hierarchical grid Explorer style interface DataGridview combobox column scrolling text Databinding Textbox on TabPage Autoscroll jump when removing a control at run-time |
|||||||||||||||||||||||