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.
Related
I have a .NET Core 3 (not ASP) project in Visual Studio 2019 that has two different launch profiles:
But whenever I launch my project, it always uses the first profile, even if I have the second profile selected in my project settings. How do I tell Visual Studio to actually use the other launch profile?
EDIT: This is what my toolbar looks like:
I have no dropdown to select a launch configuration. I found the "Start Debug Target" command and can add that to my toolbar, but it doesn't have a dropdown either, it looks just like the regular start button.
In projects you can configure the profile, not select it.
In order to select a profile you should choose it from dropdown list next to start button:
EDIT
On my VS the button is called Debug Target and is placed under Standard section in toolbar.
However, there's something fishy about this button in visual studio. When I removed button from visual studio I couldn't find it among other commands to readd it. After some googling I even found out there were problems with this in past.
https://developercommunity.visualstudio.com/content/problem/323626/if-you-remove-debug-target-from-toolbar-you-can-ne.html
Ewentually I found out two ways to bring it back.
Reset the standard toolbar
Add it from Add or remove buttons section next to standard toolbar
As you know, some controls have many properties so it is difficult to find an specific property of a control in Properties window of Visual Studio. How can I search in Visual Studio Properties window?
Select the control that you are interested in, then open the properties dialog (right-click options, or press F4) you should see a box labelled 'Search Properties'.
See image.
If you like to show the search on property tap you have to install devexpress to your project and then add at least one tool from devexpress and then the "search" box will appear. I have tried it.
We have PDF (and other) files attached to TFS Work Items and in Source Control under TFS. They are not opened correctly (they show up as ASCII, basically) in Visual Studio.
The problem seems to be that until you use the 'Open With..' dialog from the Solution Explorer, VS doesn't properly associate a program with extensions like '.pdf'.
If our users had a full installation of Visual Studio, that would be an ok work-around. However, many of them only have Visual Studio 2013 with the Team Explorer component - no Solution Explorer at all.
I'm guessing that there must be some workaround for this case. Perhaps setting the proper registry value? Since VS properly remembers the association if you can tell it (through the Solution Explorer), it must be stored somewhere.
Ideas? Suggestions?
If you've got a PDF file in a project you can right-click in the solution explorer and choose "Open with..". Now you can choose which editor you want to use. If Acrobat isn't already listed you can add it and after that click the button "Set as default".
After that, your PDF's will always open with Acrobat Reader regardless if you open it from source control browser or elsewhere in the Visual Studio. But you need to configure that for all your Studios.
Reference: Answer in MSDN "Source Control Explorer Doesn't View PDF Files"
"Open with" is not available in context menu. But I found solution - well better said workaround:
You have to create external command to open this pdf file in you pdf viewer.
Go to Tools/External tools.
In command section, enter path to your PDF viewer (exe file)
In Arguments, choose "Item path". Save it under preferred name
Put this new command you created in some of existing toolbars or create new one for it. This is also little complicated, so here is how:
Hit the small arrow next to the existing toolbar, choose customize
In the new window, choose "Add command"
In the new window, your new command is hidden under the category "Tools" as command "External command 1". Add it and confirm.
Now here comes the nasty trick. This command will not work in the browser window with PDF file selected, the argument is empty :(
So you have to OPEN the pdf file into that ASCII window and THEN hit the new command. Now the file will open in you selected pdf viewer.
Hope this will help someone
I've deleted a tool from ToolBox by accident. How I can get it back if possible?
The standard way is to select the tab in the toolbox and select "Choose Items", this opens a window that allows you a list of controls to add, or you can browse to find the control in it's assembly if it is not there.
You can also restore the toolbox to the original configuration with a Right Click on the Toolbox and select "Reset Toolbox" (WARNING: This will give you the VS defaults. If you loaded any control libraries, you will lose them and have to reload them with their installer or "Choose Items").
Just right click any tool and select reset toolbox....you will get the deleted tool.
Disclaimer: This is based on memory.
Right click on Toolbox, you should get properties/configure or Add Control option. Select that option and a dialog box will appear listing all types (.net, COM) of control. Select the control that has gone missing and it should be back to your toolbox.
If reset toolbox does not help please try the following:
- right click on the blank toolbox area and select the option "Add/remove Items";
- click on the browse button;
- if 'Windows Forms' controls are missing navigate to:
C:\WINDOWS\Microsoft.NET\Framework\vx.xxxx\System.Windows.Forms.dll
- if 'Web' controls are missing navigate to:
C:\WINDOWS\Microsoft.NET\Framework\vx.xxxx\System.Web.dll
- and press OK.
The controls should then appear on the relevant tabs.
For Visual Studios or other visual stuff, to reset the toolbox and other tools click windows then go to reset windows layout.
I only noticed this last night, as I have not used the toolbox on this particular project for some time. Suddenly, all my Telerik controls, previously on their own tab, were missing, and this mysterious, empty tab #13119 was there. I added a new tab for Telerik and added all the controls, but the Telerik tab remained invisible, although the controls are still ticked to indicate that they are in the toolbox.
It seems to be a bug.
Citation from here:
Make sure you can see all of the folders on your box. We are heading to the realm of hidden files: (Under Tools --> Folder Options)
Close Visual Studio if it is open.
Go Here: C:\Users\YOUR_USER_NAME\AppData\Local\Microsoft\VisualStudio\9.0\
Backup the following files in a temp folder for saftey and delete the originals.
(toolboxIndex_reset.tbd ,toolboxIndex.tbd ,toolbox_reset.tbd ,toolbox.tbd)
Restart Visual Studio and the files will be recreated. It'll take a few seconds for the toolbox to repopulate.
Maybe this helps: Toolbox Missing Controls
I get this now and again.
Try right clicking the Toolbox and select 'Reset Toolbox'