|
Hello everybody,
I think it would be easier giving an exemple to explain my problem.
Assume you create a user control and you have a custom class called CustomClass.
In the user control, I declare the fallowing: [VB Code]
Private mTest1 as Point Private mTest2 as CustomClass
Public Property Test1 as Point ... End Property
Public Property Test2 as CustomClass ... End Property
[VB Code]
So far so good. Now the trick comes here. When I add this user control in a form, when I look at the Designer generated code, I get
[VB Code] Me.UserControl.Test1 = New Point (0,0) Me.UserControl.Test2 = Nothing [VB Code]
What I would like is to have [VB Code] Me.UserControl.CustomClass = New CustomClass (0,0,0) [VB Code]
I'd also like to be able to modify these parameters in the UserControl property window. Does anyone have a clue on how to do this ?
Thanks for your help
Gnarl
|