lyar1031
October 25th, 2006, 01:14 PM
I have a question. I created 2 custom controls which my application uses. For simplicity lets call them Ctrl1 and Ctrl2.
How do I pass data from Ctrl1 to Ctrl2.
For instance lets say Ctrl1 changes a color. That same color must be passed to Ctrl2.
OR:
Is it possible to raise an event in Ctrl1 (OnColorChange...for example). This event gets called in the main application. From the main application the color can be passed to Ctrl2.
I believe the Event is the way to do it. Any help would be appreciated
Thanks
How do I pass data from Ctrl1 to Ctrl2.
For instance lets say Ctrl1 changes a color. That same color must be passed to Ctrl2.
OR:
Is it possible to raise an event in Ctrl1 (OnColorChange...for example). This event gets called in the main application. From the main application the color can be passed to Ctrl2.
I believe the Event is the way to do it. Any help would be appreciated
Thanks