用户控件的问题???????
用户控件里放了个Textbox
Form1窗体里有个单击事件
Private Sub Command1_Click()
k = "女人"
End Sub
如何将k的值传给用户控件的Textbox??????????
[解决办法]
'在用户控件里加入下面代码:Public Property Let Text(ByVal cValue As String) Text1.Text = cValueEnd Property'在Form1窗体里有个单击事件Private Sub Command1_Click()k = "女人"UserControl11.Text = kEnd Sub