If the properties of your control are marked as Private, you should be able to set the properties right after you created an instance of it with LoadControl:
Code:
Dim myControl As MyUserControl = CType(LoadControl bla bla), MyUserControl)
' Control is ready, now set its properties:
myControl.SomeProperty = SomeValue
Page.Controls.Add(myControl)
Does this help?
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
The Bazaar by
The Tea Party (Track 2 from the album:
The Edges Of Twilight)
What's This?