In my activity, I have a panel created in Designer to which several views are assigned (buttons, labels, etc.). The panel name is pnlDisplay and Activity is its parent. One of the buttons assigned to this panel is called btnSearch. When I click btnSearch, I want to remove the pnlDisplay and replace it with a panel defined in code as pnlSearch. When btnSearch is clicked, I call Activity.RemoveView(pnlDisplay). When I compile this, I get the following compile error:
Error description: Object reference not set to an instance of an object.
Occurred on line: 412
Activity.RemoveView(pnlDisplay)
Word: (
Where have I gone off track?
Error description: Object reference not set to an instance of an object.
Occurred on line: 412
Activity.RemoveView(pnlDisplay)
Word: (
Where have I gone off track?