Views in code vs designer thanx ..
OK, say I have pnlMain, and above it pnlMenu with a button btnSetup and a panel pnlSetup
I want btnSetup to hide pnlMain and show pnlSetup,
I define pnlMain, pnlMenu, btnSetup in Main Activity and define pnlSetup in setup activity
Code for btn setup_click causes an exception when I make pnlSetup visible
Thanks for your help, I will also check what you advised.