In my project there are several buttons and one panel. Once I click a button, I make panel visible and its working, however, panel is visible behind buttons. I want panel should be in front. Please help to know the reason.
Activity is loading 2 layouts, Layout 1 & Layout 2. When activity is initialized, I am loading Layout 1 & Layout 2 activity and after pressing button (Layout 2) making panel visible (Layout 1). Its visible but behind buttons.
And/or you might want to consider getting the existing layouts off the screen altogether before loading a new layout. One way is to have each of your sublayouts contained on a single panel, and then you can (I think) hide/reveal that panel and its contents by changing just the one .Visible property. Or you could move the non-panels off-screen to hide them, eg .Left = 10000, and then likewise .Left = 0 to reveal/restore them.
Or if you won't be needing the old panel again, you could do this: