visual-studio-2005

How to query and retrieve information from a Datatable in C#

I am putting information from a folder into a datatable. I'm putting the info into the datatable using the following code line: dtUpgradeFileInfo.Rows.Add(nums[0],nums[1],nums[2],test1); It appears to be working but I'm not as familiar with datatables in C# as I am in VB. How would i search the datatable where the first column has a ce...

Problem in converting VS 2005 WebSite Project to VS 2010

Hello everyone, I have a WebSite Project that was developed using Visual Studio 2005 and .Net 2.0. Now I want to conver the application to Visual Studio 2010 but keep the target famework as it is; i.e. .Net 2.0. When I opened the project using VS 2010 (Professional Edition) it started with the usual converting wizard, I selected to con...

Unable to attach to the process

I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username. I have opened VS as administrator. The error I am getting is: Unable to attach the process. The system cannot find the file specified I am running on Windows Vista. ...

Why I lost input focus in visual studio 2005/2008

I wrote a Add-In for Visual Studio 2005/2008. It will prompt a window with some edit controls as child windows. But if open VS with a document and then open my Add-In, those child edit controls will lose input focus when type Tab/Delete/Backsapace/Ctrl-C etc. without any document and then open my Add-In, it is OK. I think I found th...

C# parse regional date time strings

Hey everyone, I am trying to make a small application for a project in which clients from across the world can use. The problem I am having is that the back-end is setup using XML files that gets generated and uploaded to a shared network and in these XML files I store a date time variable that says when a particular task started and fi...

Blue/Black line appearing on exception thrown in Visual Studio 2005

I'm having a problem with VS2005. Whenever I have an exception thrown and my program breaks, the line that it breaks on is not readable because it turns black and blue. Please see my screenshot for a better idea of what I'm talking about. I had resharper installed but I went ahead and disabled it but this is still happening. Thanks ...

Intellisense missing for VB.NET projects in Visual Studio 2005

In Visual Studio 2005, I can't seem to get the Intellisense menu to pop up at all when I click CTRL+Space. This seems to be limited to VB.NET files. I have tried creating new Visual C# and C# web projects, and it works fine there. There also doesn't seem to be a problem in things like CSS files in VB.NET projects. But when I create a new...

How do I 'embed' a manifest in an assembly using VS2005?

Using VS2005, how do I 'embed' a manifest in an assembly? ...

Speed up compilation in Visual Studio 2005

What are the best ways to speed up compilation time in Visual Studio 2005 for a solution containing mainly C++ projects? ...

Problem generating manifest in VB.NET 2005

Hi, I am using source safe to maintaine my code. Recently I copied my code to another machine. But everytime i build my project i am getting below error: Problem generating manifest. Could not load file or assembly 'D:\WorkingFolder\Project\SubFolder\obj\Release\SubFolder.exe.manifest' or one of its dependencies. An attempt was made t...

How do I install different versions of a file based on a condition from an msi built in Visual Studio?

I've been tasked with building an msi installer for our custom project in Visual Studio 2005. In addition to installing the dlls we build from our code, it has to install a bunch of extra files (configuration, templates, scripts, stuff like that) that are stored in our version control system. In a couple of cases the exact file version w...

VB.NET Exception : The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception.

Hi, I am getting Exception while connecting to database: The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception. My Code: Con = New OdbcConnection(ConnectionString) Con.Open() ' **Geeting Exception here** tmpdt.Clear() Cmd = New OdbcCommand(Str) Cmd.CommandType = Command...

The difference between a window created in main thread and a window created in another thread

Another question about my add-in for visual studio. Now, I had two experiments as following: In my add-in library's main thread, I call CreateWindowEx to create a window(or CreateDialogParam to create a modeless dialog) and call CreateThread to create a thread where the window's message loop is running. Then I will have a problem I've ...

How to see list of possible exception in some Class.(C#.NET)

Hello. I have a lot of classes that have been written in C#.NET, and I need to know what exceptions can be thrown by them. How I can do it in Visual Studio 2005. ...

Can't debug ASP.NET in VS2005 won't stop at break point

I have an puzzling problem. I have a new ASP.NET web application in VS2005 that runs fairly well, but I am having a problem and would like to set a break point to see what is going on. I have compiled the project in Debug mode. I have debug=true set in the web.config. But it appears that the IDE is not attaching to the process at all...

can not open VS2005 solution file

I have a visual studio 2005 solution with many projects. Yesterday I was able to open it normally. Today, when I double click on it, I get the following error message: The selected file is a Visual Studio solution file, but was created by a newer version of Visual Studio and can not be opened. Please help. ...

all files appear be checked out .. Why?

I just opened my visual studio 2005 solution file with multiple projects and all the files in the solution appear to be checked out. Every file in this solution has "check-mark" next to it. I DONOT want to check out the file and accidentally check it in. In solution file, there are over 70 projects. Each project close to 20 files. Ple...

The first public scope indicator at the top of the c++ winform control file?

I am following a tutorial for Windows Forms (Visual Studio 2005, sorry its all I've got at uni). http://msdn.microsoft.com/en-us/library/ms235628(v=VS.80).aspx I am on Add a Custom Property to the Control It is asking me to: Place the cursor after the colon of the first public scope indicator at the top of the clickcounterControl.h f...