Inheritance

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

Guest

I have a problem with the inheritance.
I have a Base form with PUBLIC Component One Controls
C1Toolbar , Command Holder , some Command
All the commands are PUBLIC.

I have created another form which inherits from base form.
When i click in design mode on the inherited form the command button
i receive the error message
"System.NullReferenceException: Object reference not set
to an instance of an object at C1.Win.C1Command.Design.3.6H
(C1CommandLink1NG)

Do you thing there is a problem with the controls modifiers from the base
class (all are PUBLIC) ?

If I use a simple button without the toolbar i have not this problem.


Thanks,
Nicoleta Taranu
 
C1Toolbar c1 = new C1Toolbar();

I have a problem with the inheritance.
I have a Base form with PUBLIC Component One Controls
C1Toolbar , Command Holder , some Command
All the commands are PUBLIC.

I have created another form which inherits from base form.
When i click in design mode on the inherited form the command button
i receive the error message
"System.NullReferenceException: Object reference not set
to an instance of an object at C1.Win.C1Command.Design.3.6H
(C1CommandLink1NG)

Do you thing there is a problem with the controls modifiers from the base
class (all are PUBLIC) ?

If I use a simple button without the toolbar i have not this problem.


Thanks,
Nicoleta Taranu

User submitted from AEWNET (http://www.aewnet.com/)
 
Back
Top