
Accessing design time properties in run time
I am making a control and I would like to be able to access the
BackColor property of my control at run-time from within the control's
own code. I was going to make my own property which would change the
BackColor property as well as do a few related things.
However, when I reference the control in code (either by referencing
the Me object or by referencing an object variable that is set to the
control) the only properties I get are the ones that I have created
for the control. So I tried putting in:
ThisControl.BackColor=col
anyway and when it hit that line it doesn't recognize the BackColor
property. Naturally, I can set this property of the control at design
time, but how can I access it in the control's code?
Ed