Herfried:
Here is a sample of What I am doing:
Private Function ClassByControl(ByVal strAssemblyFileName As String) As
UserControl
Dim objAssembly As [Assembly] = [Assembly].LoadFrom(strAssemblyFileName)
Dim cControl As UserControl
Try
cControl = objAssembly.CreateInstance("Sample.UserControl1")
cControl.UserName="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.UserName="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/>