F
Frank Skare
Hello,
I have a class which has a property which
is the type of another class which has
a property as well. I expected a node
but it seems I'm missing something. Does
anybody know how to access the entire object?
Regards,
Frank
------------------------
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
PropertyGrid1.SelectedObject = New TestClass1
End Sub
Public Class TestClass1
Public Property TestProperty() As TestClass2
Get
Return New TestClass2
End Get
Set
End Set
End Property
End Class
Public Class TestClass2
Public Property TestProperty() As String
Get
Return ""
End Get
Set
End Set
End Property
End Class
-------------------------
private void Form1_Load(object sender, System.EventArgs e)
{
propertyGrid1.SelectedObject = new TestClass1();
}
public class TestClass1
{
public TestClass2 TestProperty
{
get
{
return new TestClass2();
}
set
{
}
}
}
public class TestClass2
{
public string TestProperty
{
get
{
return "";
}
set
{
}
}
}
I have a class which has a property which
is the type of another class which has
a property as well. I expected a node
but it seems I'm missing something. Does
anybody know how to access the entire object?
Regards,
Frank
------------------------
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
PropertyGrid1.SelectedObject = New TestClass1
End Sub
Public Class TestClass1
Public Property TestProperty() As TestClass2
Get
Return New TestClass2
End Get
Set
End Set
End Property
End Class
Public Class TestClass2
Public Property TestProperty() As String
Get
Return ""
End Get
Set
End Set
End Property
End Class
-------------------------
private void Form1_Load(object sender, System.EventArgs e)
{
propertyGrid1.SelectedObject = new TestClass1();
}
public class TestClass1
{
public TestClass2 TestProperty
{
get
{
return new TestClass2();
}
set
{
}
}
}
public class TestClass2
{
public string TestProperty
{
get
{
return "";
}
set
{
}
}
}