Hi there,
Visual studio 2005 - C#
I'm building an VS add in which uses Visual Studio's propertygrid window to display stuff for my class-instances.
object[] a = new object[1];
a[0] = aObject;
ParentToolwindow.SetSelectionContainer (ref a);
That works like a charme... but... I can't seem to figure out how ro 're-set' the property grid.
I've tried stuff like
ParentToolwindow.SetSelectionContainer (null);
a[0] = null;
ParentToolwindow.SetSelectionContainer (ref a);
The msdn tells me:
If SetSelectionContainer is passed an empty Variant, it removes the object displayed.
But it doesn't show an example (and the link the have there for a general example is no good).
Who can tell me what the line of code should be. It can't be that difficult... I just can't find it.
Greetz and thanks
Coretta (NL)
Visual studio 2005 - C#
I'm building an VS add in which uses Visual Studio's propertygrid window to display stuff for my class-instances.
object[] a = new object[1];
a[0] = aObject;
ParentToolwindow.SetSelectionContainer (ref a);
That works like a charme... but... I can't seem to figure out how ro 're-set' the property grid.
I've tried stuff like
ParentToolwindow.SetSelectionContainer (null);
a[0] = null;
ParentToolwindow.SetSelectionContainer (ref a);
The msdn tells me:
If SetSelectionContainer is passed an empty Variant, it removes the object displayed.
But it doesn't show an example (and the link the have there for a general example is no good).
Who can tell me what the line of code should be. It can't be that difficult... I just can't find it.
Greetz and thanks
Coretta (NL)