Link to home
Start Free TrialLog in
Avatar of JackOfPH
JackOfPHFlag for Philippines

asked on

Is there any way to access a control in the base class from the inherited class...

Hi!

Is there anyway I can access a particular control that is private in scope in the base class from the inherited class?

I know this is sound silly, but the reason I am asking this is because I don't have the source code of the base class and I need to put some value in that particular control.

Thank you, very much

Joseph
ASKER CERTIFIED SOLUTION
Avatar of Aruspex
Aruspex
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JackOfPH

ASKER

What happen if i shadow the control?

For example:

txtName is the name of the control...

What if I do this?

Private Shadow withevent txtname as new textbox1
here is a link on shadow that might clear up some things Shadow
The only other alternative would be to use reflection if it hasnt been prevented
I think the only left for me to do is to use a decompiler and then compile the dll again...

Thanks for the input...