Herfried:
Here is a sample of What I am doing:
Private Function ClassByControl( ByVal strAssemblyFile Name As String) As
UserControl
Dim objAssembly As [Assembly] = [Assembly].LoadFrom(strAs semblyFileName)
Dim cControl As UserControl
Try
cControl = objAssembly.Cre ateInstance("Sa mple.UserContro l1")
cControl.UserNa me="XXXXX"
Catch
End Try
End Function
In the Control I have the Following Propert Set:
Public Property Username() As String
Get
Return ssUsername
End Get
Set(ByVal Value As String)
ssUsername = Value
End Set
End Property
There error happens on cControl.UserNa me="XXXXX"
Thanks,
Dan
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2o******** ****@uni-berlin.de...
* "Daniel Friend" <da*@donotspam. com> scripsit: I have added a custom usercontrol programically and all works fine... I
would like to change some custom properties that I have set in that
usercontrol.
Can you be more specific? What doesn't work? What do you want to
archieve?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>