I did something similar and wanted to react to a click event of a button on a user control. It took me ages to work out but you need to use the Raiseevent in the control and then handle that raisedevent in the main form\control.
Jon
>Hello All, I just created my first user control in VS 2005, it consists of a TabControl with two pages, and several textboxes and labels on each page, I built it, and added it to my toolbox, however !, having placed the control on a form, I cant access any of the controls within it ?, is this normal ?, I expected the UC to behave like a VFP container, obviously they don't
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement