Composite Control
Image http://www.freeimagehosting.net/uploads/a51136603b.png
Howdy,
I am hoping for some help. I wanted to create a Composite Control, shown in the screenshot above. As seen in the screen shot, the Parent Control is Label 1; it contains child controls Label2, Label3, and Label4, and a PictureBox containing a pre-defined image.
I would like to turn the above into a composite control, in C#, with the following specifications :
The Parent Label, Label1, should generate a Click Event. Child controls Label2, Label3, and Label4 are to be assigned ToolTips on MouseMove Event, while the last Child Control, PictureBox, should have both ToolTips on MouseMove Event and Click Event.
Likewise, the locations of Label2, Label3, Label4, and PictureBox within the Parent Label1 control must be set as properties, as are their texts and sizes.
How do I go about incorporating all these into one composite control named AilmentLabel ? Any advise or information is greatly appreciated. Thank you so much.