Android Question Controls not being sent to back?

WardOperationsLLC

Member
Licensed User
Longtime User
I have an app I'm working on and can't seem to get two buttons to be sent to the back. Attached are the designer view that shows the buttons locations (btnProfile & btnExit), the view tree that shows they are sent to the back, and a picture of them showing above the cyan panel (which is pnlLogin). pnlLogin is set to move to 0,0 on app startup. That works fine, but as you ca see the buttons still show above it. I've tried everything and can't get them to go to the back. After the designer failed to do it, I uninstalled the app from the emulator thinking maybe it wasn't using the updated version. Problem persisted. I then added a couple lines of code

Added Code:
    btnExit.SendToBack
    btnProfile.SendToBack
    pnlRegister.BringToFront
    pnlLogin.BringToFront

That still didn't fix the issue. I thought maybe sleeping for a couple seconds before calling them would help. It didn't. I've walked through the code slowly and it's definetely running that code, but doesn't seem to be doing anything. Can someone point me in the direction to fix this?
 

Attachments

  • AppView.PNG
    AppView.PNG
    381.6 KB · Views: 41
  • ViewsTree.PNG
    ViewsTree.PNG
    9.4 KB · Views: 37
  • DesignerView.PNG
    DesignerView.PNG
    29.4 KB · Views: 48
Top