Does VS 2015 still support Win32 dialog box editing with Toolbox? - winapi

I'm trying to create a dialog box for an old-fashioned Win32 project. This was working fine under VS 2010, but in VS 2015, the Toolbox no longer seems to include classic controls (Edit Box, Button, Radio Button, etc.)
The "Dialog Editor" section has only one option, and it's grayed out:
All the other categories are for .NET, WPF, Silverlight, etc. and are not applicable to my project.
If I right-click and select "Choose Items", I get all the fancy new stuff, but nothing about the old school dialog components:
Can anyone explain how to get the Toolbox to show something I can use? I would hate to have to edit the raw RESOURCE.RC text.

Related

where are visual studio 2017 dialog editor tools and controls?

I'm a complete newbie to Visual Studio 2017 and now need to update a old windows application. I down loaded VS 2017 community, found my .RC files and used it to open one of my dialog designs. It displays correctly but my problem is how do I get the VS to display the tools such as grid lines, alignment tools, etc? And how do I display the menu of the various controls (boxes and items) that one can add to the dialog design?
Those are in the toolbox pane/sidebar/thingie on the side. If you don't see it, go to the View menu and select "Toolbox" to turn it on.

Toolbox containing no items when I'm editing a dialog

I'm maintainig an old MFC application with Visual Studio 2013. Building the application works fine, but I'm unable to use the dialog editor.
When I open a dialog from the resource view, it displays correctly, I can click on the existing items, view their properties, move them etc.
But when I open the toolbox via the View-Toolbox command (Ctrl+Alt+X), all I get is an empty toolbox as displayed below:
Right click on the toolbar and "Reset Toolbox" doesn't change anything
Right click and then "Show all" shows an impressive list of tools, among those there is the Dialog Editor, but all items are inactive as shown in the picture below:
On the other hand when I create a new MFC project from scratch, the toolbox containing the dialog items works fine.
Does anybody have an idea what could be wrong?
FYI: in the meantime I use Visual Studio 6 (yes) for editing the resources.
There are two typical work arounds to get the toolbox back in Visual Studio. One is to reset the toolbox as you've tried. The other is to delete the “.tbd” files in your corresponding C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\12.0 folder.

visual studio 2010 toolbox standard controls missing

I have created an asp.net project in visual studio 2010 ultimate edition.
I can't see Standard, Data etc toolbox tabs, I can only see Telerik and HTML controls.
I tried to reset the toolbox, tried to delete C:\Users\mypcuser\AppData\Local\Microsoft\VisualStudio\10.0\*.tbd.
I also tried devenv /ResetSkipPkgs but nothing worked for me.
Please suggest a Solution thanks!
This may help you.
In the Toolbox, select the tab where you want to add the control.
Right-click the Toolbox and select Choose Items from the shortcut menu.
The Choose Toolbox Items dialog box opens. The following illustration shows the Choose Toolbox Items dialog box.
Try to right click on the Toolbox and select "Reset Toolbox"
The common controls should appear in the Dialog Editor list along with all the MFC ones that I seem to be limited to when the problem happens.
I have this happen frequently. I don't know what causes it, but this fix always works and is fine for me since I didn't customize anything.
This will help you...
In Visual studio, go to view-toolbar-check standard and layout..
Then restart the visual studio and be sure on design page and check for toolbox..
Now the standard toolbox items will appear.. Thanks.
Just for the Future Viewer of this page
VS 2010 standard ToolBox cannot be viewed.
Mostly this is happen on a first run.
It solved the problem with Ctrl + Alt + X in your keyboard.

Adding a Menu Button into VS2010 TFS Query Result or Work Item bar

I am trying to add button(s) to the Visual Studio / TFS2010 Work Item query results menu bar and also to the menu bar shown for individual Work Items (see image below) - is that actually customizable & doable and if so, how?
I would take a look at this post:
TFS 2010 - Adding a menu item to the Completed Builds context menu in the Build Explorer
It discusses the steps you need to take to add menu items to context menus.
To answer my own question (as the one by NGM was helpful but it did not directly answer it.) - no it is not possible as the Work Item & Query Windows inside Visual Studio, particularly their toolbars, are not callable as commands in a VS (SDK) sense.
Basically they are merely WinForms controls (well, were for VS2010, I think this has changed to WPF in VS2013 by now) placed inside a WinForms form hosted inside a VS ToolWindow. The toolbars I outlined above cannot be customised via the VS SDK.
This may have changed in VS2012 or VS2013, but for VS2010 there was/is no way to add custom items into the two toolbars I asked for back then.

How can i add an icon to a submenu in a VS2010 add-in?

I can add an icon to a menu item by adding an <icon> to the <button> element in the in the *.vsct file of my Visual Studio Package.
Unfortunately the <icon>issn't available available in a <menu> element.
How can i add an icon to a submenu?
It is possible to do this from code (preferibly C#)?
Maybe via injecting something into the COM / OLE layer?
TortoiseSVN has a icon in the explorer popup menu, have you ever seen a VS plugin that does this?
Unfortunately this isn't possible using VS menus (not with vsct, C#, etc), and they're not very extensible in this regard. However, depending on what you're trying to do, (e.g. if you're looking to do this in a context menu within a tool window rather than the VS menu bar), you may be able to use WPF context menus which should give you the control you need.
I am not sure TortoiseSVN explorer context menu and what you are trying to do in Visual Studio extension are same. As I understand, VSCT Menu element cannot have Icon. Only Button element supports icons. You can check this blog post from DiveDeeper for more information.

Resources