tabcontrol problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a very weard problem
I have a win form with some controls, including a tabcontrol
When i put a control (a textbox or anything else) on a tabpage in the tabcontrol and when i switch to an other tabpage (in design!) i keep gettin
"NullReferenceException: Object Reference not set to an instance of an object
Also when i close or open the form, i get this message. When i remove the control from the tabpage the problem is no more..
I tried re-creating the entire form but the problem was there agai
I have an other form in the same project wich doesn't have this problem

What's going on here
Any ideas? This is driving me crazy for days now ..

Tia
Tom
 
* =?Utf-8?B?VG9t?= said:
I have a very weard problem:
I have a win form with some controls, including a tabcontrol.
When i put a control (a textbox or anything else) on a tabpage in the tabcontrol and when i switch to an other tabpage (in design!) i keep getting
"NullReferenceException: Object Reference not set to an instance of an object"
Also when i close or open the form, i get this message. When i remove the control from the tabpage the problem is no more...
I tried re-creating the entire form but the problem was there again
I have an other form in the same project wich doesn't have this problem!

What's going on here?
Any ideas? This is driving me crazy for days now ...

Do you use only controls which are part of the framework or do you use
your own controls on the form too? Does this even occur on a form
without any code written by you?
 
Do you use only controls which are part of the framework or do you us
your own controls on the form too? Does this even occur on a for
without any code written by you

I have only used the standard controls from the toolbox and i haven't written any code behind my form yet
 
Back
Top