Something very strange happened here in Visual Studio 2008 (C#).
After deleting an icon resource from my project all my menu items and toolbar buttons disappeared.
I checked my form Designer.cs file and the code to the items are still there.
Also, I tried to search for the deleted resource file name (warning.ico) in the entire solution...
I am building a windows form in C#. Along the bottom of my form, I would like to have a horizontal row of image thumbnails for all the images in the folder. Ideally, the user could double-click an image and it would open up in the default picture viewer. Any and all help is appreciated!
...
I have a web application that accesses Windows resources on another server. The code is fine and when I run it through the debugger it's able to see the remote resources without any difficulty, but when I put the code into IIS it fails with ACCESS_DENIED. I'm trying to see what rights I need to give to the web application.
Difficulty:...
I have a huge MMC snapin written in Visual C++ 9. Every once in a while when I hit F5 in MMC mmc.exe crashes. If I attach a debugger to it I see the following message:
A buffer overrun has occurred in mmc.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
...
Where can one find FindPrivateKey.exe after a fresh VS2008 install?
...
I have a point in my code where I have added a breakpoint. What I would like to do when the debugger stops at the break point is to modify the contents of a list (specifically in this case I want to add entries). How do I modify the contents of a list while debugging?
Edit: The list is a list of strings.
...
Hello,
Visual Studio 2008 uses its own solution file format, and different build systems like NAnt (and even some complex MSBuild cases) use their own. How do you keep them synchronized? Are there any best practices about doing so? Any automated scripts, plugins...?
Is it viable not to build projects under VS and use only external buil...
I have two different version of the Visual Studio IDE on a build machine. My question is how do I know which version of the compiler NAnt is using? Is there a way to direct NAnt to use a specific version?
...
When I remove a reference to a project in Visual Studio 2008 I receive the following error message in a dialog box:
Attempting to read or write protected memory. This is often an indication that other memory is corrupt.
Once I click "OK" to exit the message box, Visual Studio shuts down completely. I'm running Visual Studio on a W...
I keep getting this error when I deploy to staging. Everything works fine on my local and just to add, the production version works too. The problem is, when a user(in this case test user) trys to login into the app, the error is thrown. I have managed to recreate the errror in code and fixed to work but when I deploy the nightmare conti...
I have .NET assembly with one public class and several private classes.
I am trying to register it for COM interop so that I can call it from VBA, using the following command:
regasm /tlb foo.dll /codebase
Subsequently, when I open up the .tlb file in Visual Studio's "object browser", I see that the library does not expose any types.
...
I am trying to create a script such that I am given an array of server names and from these names I would like to create a system dsn on each of those respective machines.
I know that you can use SQLConfigDataSource() to create a dsn on your local machine, but it does not seem to give any parameters for creating the dsn on a separate ma...
In .NET, I have developed a client library for my WCF service.
I have registered the assembly for COM interop so that I can make calls to the library from VBA.
However, since the executable using the library is not built in the .NET setting, library functions are unable to find the config file that defines the service bindings ('app.co...
I have a project that referenced an external DLL without the PDB file (let's call it version 1). I created version 2 of the DLL with the PDB file. I was able to debug, etc. no problem. Due to some variations in the code, I deleted the PDB and went back to version 1. The /bin directory no longer has the PDB after I build but somehow, ...
I converted a VS2005 solution to VS2008, but Intellisense isn't working. It works fine with a native solution made in VS2008. Its a C# solution.
...
In my application, I have a "recent files" drop down menu. It will contain anywhere between 0 and 9 files to load. I want to set shortcut keys on these menu items such that Ctrl+1 loads the first file, Ctrl+2 loads the second, etc...
I understand that I need to set the ShortcutKeys property of the ToolStripMenuItem but I am looking for ...
I have a listview control, to this control I am adding rows which contain image data, filename, position (its taken at a point in a 4 dimensional matrix), time taken. To make things nice I want to add a 'delete' icon to my fourth column so the user can review the image and decide whether to keep it or not, how do I add an image/icon to ...
I created a Shared AddIn using Visual Studio 2008, C#. In the AddIn, I get data from a database, populate it into a Dictionary object, and use Word's builtin FindReplace to replace text inside a WordTemplate with the data from the database.
Dictionary<string, string> myDBData = new Dictionary<string, string>();
Some of the db fields...
I have some projects from XNA 1.0 that I wanted to debug but when I try to convert them to VS 2008 the conversion errors out and only converts the .csproj and .sln file, all other project and resource files remain unconverted with no explanation as to why. Then I went back and tried to convert just regular C# 2005 projects and get the s...
I started playing with Postsharp but cannot get past the first step. Someone else reported on their forums at http://www.sharpcrafters.com/forum/Topic4817-18-1.aspx but was wondering if anyone has come across this and perhaps have a solution.
Am using VS2008 and have .net3.5SP1 installed.
(Posting here as there is more activity than th...