A
Antuane
hi guys, its me again, with a few simple (probably silly) quesetion...
hi guys, i've managed to create a custom textbox class.
& i'd like to access the parent control (in this case this would be the
form, cuz i drop the textbox onto the form), in the constructor of the
custom textbox class.
i'd like to access the parent control in the constructur of the textbox.
But i can't do this, cuz i get an error, saying that the parent property is
not initialized.
Error Message = Additional information: Object reference not set to an
instance of an object
But once the control is instantiated, i can access use this property to
access the parent object.
How can i access the parent object, in the constructor of my user control???
hi guys, i've managed to create a custom textbox class.
& i'd like to access the parent control (in this case this would be the
form, cuz i drop the textbox onto the form), in the constructor of the
custom textbox class.
i'd like to access the parent control in the constructur of the textbox.
But i can't do this, cuz i get an error, saying that the parent property is
not initialized.
Error Message = Additional information: Object reference not set to an
instance of an object
But once the control is instantiated, i can access use this property to
access the parent object.
How can i access the parent object, in the constructor of my user control???