Make your own free website on Tripod.com
Make Your First OCX Control
Lesson 1
Tutorials - Chapter 1 - Chapter 2 - Chapter 3 - Chapter 4 - Chapter 5

Implementing BackColor Write Situation
The write situation occur when the user change the BackColor Color propery.
In that case, we need to update the variable that holds for us the propery value.
The variable that holds for us the control BackColor property value is Command1.BackColor.
Why is that?
We could declare a variable, for example BackColorVariable, that will hold for us the BackColor value. But every time the value in that variable will be changed, we had to update the Command1 BackColor property because we want that the command1 BackColor will be the same as the Control BackColor. So instead of writting Command1.BackColor = BackColorVariable in every place that the variable is changed, we decided that the variable that holds for us the Control BackColor property is Command1.BackColor.

 

Back  Forward