Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / April 2006

Tip: Looking for answers? Try searching our database.

IVsUIHierarchyWindow.ExpandItem availablility (fails during OnAggregationComplete)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stuart Carnie - 18 Apr 2006 17:32 GMT
I have a project subtype using the MPF, and I am trying to bold an item
in the hierarchy.

If I call IVsUIHierarchyWindow::ExpandItem during the
OnAggregationComplete method, it fails.

If I create a new menu command and call the ExpandItem function here, in
response to a UI event, it works just fine.

My problem is I need to set the item as bold after the project has
loaded - when is the appropriate time to do this, since it is failing
during OnAggregationComplete?

I am using the April SDK release.

Cheers,

Stuart
Stuart Carnie - 18 Apr 2006 19:07 GMT
> I have a project subtype using the MPF, and I am trying to bold an item
> in the hierarchy.
[quoted text clipped - 14 lines]
>
> Stuart

It works if I issue a IVsUIShell::PostExecCommand - is this the expected
behaviour?

Cheers,

Stuart

----
Stuart Carnie
"Gary Chang[MSFT]" - 19 Apr 2006 09:04 GMT
Hi Stuart,

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 20 Apr 2006 04:31 GMT
Hi Stuart,

I have consulted this issue woth our product team members, they recommend
registering for solution events and executing the command during
OnAfterOpenProject(), OnAggregationComplete is too early.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Stuart Carnie - 20 Apr 2006 21:20 GMT
Thanks for the response, Gary.

Sorry - I should have stated I tried that - to no avail.  The same problem occurs - still appears to be too early.

Cheers,

Stuart

Gary Chang[MSFT] wrote:
> Hi Stuart,
>
[quoted text clipped - 13 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 21 Apr 2006 04:14 GMT
Hi Stuart,

>Sorry - I should have stated I tried that - to no avail.  
>The same problem occurs - still appears to be too early.

In this scenario, I think using IVsUIShell::PostExecCommand to call that
method would be the best choice.

Good Luck!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.