Как изменится значение элементов управления в пользовательском элементе управления с помощью внешнего кода
How will the value of the controls in the user-control change through external code...?
Что я уже пробовал:
I have an user-control. It has got some controls. The user-control is drawn on the form. All the controls in the user control have public access modifiers when designing the control. There is no code in the user-control. These controls are accessed through the external code in this way:- { usercontrol1 u=new usercontrol1(); u.Label1.Text="k"; } Uptill this is okay. But during 'run' by pressing F5 Label1 of the user control is showing text as "Label1" and not "k".