Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VS Add-In: Reset the propertygrid: how?

Status
Not open for further replies.

2Fuzzy4U

Programmer
Dec 2, 2002
26
NL
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top