By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Custom UserControl Custom Properties After You Add Programatically

P: n/a

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

Any help would be greatly appreciated!!!!

Here is a sample of What I am doing:

Private Function ClassByControl(ByVal strAssemblyFileName As String) As
Dim objAssembly As [Assembly] = [Assembly].LoadFrom(strAssemblyFileName)
Dim cControl As UserControl
cControl = objAssembly.CreateInstance("Sample.UserControl1")
End Try
End Function

In the Control I have the Following Propert Set:

Public Property Username() As String
Return ssUsername
End Get
Set(ByVal Value As String)
ssUsername = Value
End Set
End Property

There error happens on cControl.UserName="XXXXX"



Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.