using .net 2008,
1st i create a usercontrol
(add usercontrol after rightclicking on project), on this usercontrol i drag a label and set the text for this label. (uc1) > compile
2nd i create a class(add class after rightclicking on project), inherit usercontrol. compile and in designer drag a label and set text for the label (uc2) > compile
now when i create a form and add uc1 and uc2 to the form, only uc1 will show the text from the label i dragged onto it.. Why is this?
Hope someone can shed some light
Albert
1st i create a usercontrol
(add usercontrol after rightclicking on project), on this usercontrol i drag a label and set the text for this label. (uc1) > compile
2nd i create a class(add class after rightclicking on project), inherit usercontrol. compile and in designer drag a label and set text for the label (uc2) > compile
now when i create a form and add uc1 and uc2 to the form, only uc1 will show the text from the label i dragged onto it.. Why is this?
Hope someone can shed some light
Albert