I am trying to use the accordion panels in a project.
Whenever the code tries to reference a control I get the exception:
“Object reference not set to an instance of an object.”
This has happened when
1) I try to put .focus on a control
2) Make a control not visible
3) Attach a datasource to a control
EX: lstBusNo.DataSource = arrayListVehicleNo (arrayListVehicleNo has count of 3).
Because the accordion panel needing to be entered in source, not in design mode, I have created the GUI on another page, copied the source code and pasted it into the content of the accordion panel. Then in my application code in the .vb file is where I have the problem. It doesn’t seem to be able to find the control. Is there something that need to be done that I have missed or have done it wrong?
It doesn’t seem to be able to find the control.