Jump to content

Highlight item in Project tree

Recommended Posts

I wanted to create a shortcut menu entry for finding a VI / sub-VI in the current project context but I can't find any methods to help me accomplish such a thing.  I can get the current project context, but is there even a way to control what is selected? Or to highlight an entry in the tree?

Link to post

If you get a reference to the specific ProjectItem in the project, there is a private method in the ProjectItem class which allows you to select/highlight items in the private tree. It works for the simple case I tried.

Send me a message if you can't find the method.

Link to post
On 7/13/2018 at 2:12 PM, Darren said:

You can also press Ctrl-Shift-E from an open VI to select that VI in the project explorer.

Yes I use this all the time.  I do wish this extended to Libraries not in an open project, vote here if you feel the same.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.