Has anyone ever encountered anything similar to this? I have a Tab Control on a Windows Form. Currently, it has 8 Tab Pages. On the eighth tab I have 2 DateTimePickers and one Button. I'm trying to add another control to this tab. I need to add a datagrid, but in trying to solve this problem I've come to realize that it happens with any control.
So, when I add another control and run the program I get the NullReferenceException error. I get it regardless if I've changed any properties. I stop the debugger and run the program again and it runs fine. I can run the program 100 times and every other time I will get the error. Does anyone have any idea what could be causing this?
Thanks in advance.
Rudy
So, when I add another control and run the program I get the NullReferenceException error. I get it regardless if I've changed any properties. I stop the debugger and run the program again and it runs fine. I can run the program 100 times and every other time I will get the error. Does anyone have any idea what could be causing this?
Thanks in advance.
Rudy