VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
Go Back  Xtreme Visual Basic Talk > > > VS 2010 ChooseItems Browse button default path?


Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2012, 12:49 PM
Gruff's Avatar
GruffVS 2010 ChooseItems Browse button default path? Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default VS 2010 ChooseItems Browse button default path?


In VS 2010 (VB Project) The ChooseItems option from the right mouse button menu offers the control selection dialog. The Browse button defaults to:

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

Inevitably I have to repath everytime to one of my existing projects.
This is getting to be a pain.

Does anyone know of a way to change this default to at least the top level of my projects?
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #2  
Old 02-28-2012, 01:40 PM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default Choose Items ..yeah I've research this..

Hi Gruff,
You know about all the issues I've had with
the Toolbox > Choose Items ( ),
so I spent days/weeks researching why my
Toolbox -> "Choose Items" doesn't work.

You might find this interesting:
Quote:
The following example demonstrates how to add a .NET component to the ToolBox by using a path to the file. The component to be added must be a .NET control, such as a Visual Basic Windows Control Library component.
Code:
Sub ToolBoxItemAddExample2()
    Try
        Dim tlBox As ToolBox
        tlBox = CType(DTE.Windows.Item(Constants. _
        vsWindowKindToolbox).Object, EnvDTE.ToolBox)
        ' Create a new tab called "My Controls."
        Dim tlBoxTab As ToolBoxTab = tlBox.ToolBoxTabs. _
        Add("My Controls")
        ' Set focus to the new Toolbox tab.
        tlBoxTab.Activate()
        ' Add a .NET control as a new control in the new ToolBox tab. 
        ' The constant "vsToolBoxItemFormatDotNETComponent" alerts the 
        ' ToolBox to the type of control you are adding.
        tlBoxTab.ToolBoxItems.Add("MyDotNetControl", _
        "C:\Libraries\ADotNetControl.dll(", _
        vsToolBoxItemFormat.vsToolBoxItemFormatDotNETComponent)
    Catch ex As System.Exception
        ' Display any errors that occur.
        MsgBox("ERROR: " & ex.Message)
    End Try
End Sub
It's from this MSDN page:
http://msdn.microsoft.com/en-us/libr...items.add.aspx

Other possible relevant pages:
How to: Control the Toolbox
Managing the Toolbox
Advanced Toolbox Control Development
Walkthrough: Autoloading Toolbox Items
Registering Toolbox Support Features

This page for the last link has a section for VSPackage (which handles which controls appear in the toolbox) that is entitled: "Registering a Package as Providing Toolbox Items"
Quote:
Any VSPackage providing ToolboxItem objects must have a subkey, Toolbox, under its own package key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<Version>\Packages\ <Package GUID>, where <Version> is the version number of the release of Visual Studio, such as 8.0, and <Package GUID> is the GUID of the package that provides Toolbox items.

This Toolbox subkey must contain at least one entry, a DWORD entry named Default Items.

The root path of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<Version> can be overridden with an alternate root when the Visual Studio shell is initialized, or you can use DefaultRegistryRootAttribute. For more information, see Command-Line Switches (Visual Studio SDK).

For the entry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<Version>\Packages\ <Package GUID>
So, essentially, the default "Choose Items.." path is controlled by the VSPackage which in turn gets it's path from a registry setting.

Don't know if that is any help...most of the VSPackage entries in the MSDN have to do with modifying things with a .vsix extension (which of course doesn't work with the Express edition of VB.Net you have) but maybe you can start to figure a workaround with this info.
Reply With Quote
  #3  
Old 02-28-2012, 02:39 PM
Gruff's Avatar
GruffVS 2010 ChooseItems Browse button default path? Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

Thank you. What I was speaking of was setting the default path for the "Browse" button on the "Choose Items" dialog in VS.NET. Are you suggesting writing an Extension that adds controls in lieu of the exitsing tool?
...
Actually it may help as I have VS.NET 2010 Standard at work and that is were I do that sort of development. Home Express is for when I'm bored on weekends or want to run a snippet from the forum.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #4  
Old 02-28-2012, 03:12 PM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default Trying to get control of the VS.Net IDE and pathing..

Quote:
Are you suggesting writing an Extension that adds controls in lieu of the existing tool?
If you have VS.NET 2010 Standard at work it might be something to look into.

The above code proves it's possible to programmatically handle the loading of usercontrols, but I don't know if it would work better as an extension or as a macro - I don't have either option in my Express Edition.
Reply With Quote
  #5  
Old 02-29-2012, 03:40 PM
Gruff's Avatar
GruffVS 2010 ChooseItems Browse button default path? Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

Found a quick workaround for this issue.

Windows 7 has a Favorites group in the Windows Explorer left hand panel at the top of the browser. If you right mouse drag your desired folder to this area and create a shortcut you are one click away from setting a path to pretty much anywhere.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path? VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
 
VS 2010 ChooseItems Browse button default path?
VS 2010 ChooseItems Browse button default path?
 
-->