visual-studio-2008

How to live with Visual Source Safe 2005?

I'm currently working in an environment that still has VSS 2005. I currently do not have the power to change to Subversion, TFS, etc. What are the main gotchas to watch out for with VSS 2005--how can I best use it to try and save my versions and not blow up my source code? For example, is it better to integrate it with Visual Studio...

Why does the VB.net compiler crash after I move a project?

I'm migrating data from an old laptop to a new laptop, including some vb.net projects in visual studio 2008. But when I try to open some of them on the new laptop, I quickly get a dialog stating that the vb compiler has crashed and asking me if I want to close, debug, or check online for solutions. Visual studio then, frustratingly, clos...

trying to create a MFC dialog based application to read a video

Hi all, I'm writing a program using MFC Dialog based application to read a video. I'm using videolabs package as a reference. The error which I get when I compile the program is 1>c:\users\prashanth\documents\visual studio 2005\projects\videodemo34\videodemo34\videodemo34dlg.cpp(105) : error C2679: binary '=' : no operator found which ...

Design time error - multiple controls with the same Id

I'm using VS 2008, I have a very simple page that has a bunch of uniquely named controls. When I try to view it in design mode I get the following error: Error Rendering Control - Label12 An unhanded exception has occurred. Multiple controls with the same ID 'Label1' were found. FindControl requires that controls have unique IDs I've ...

Visual C# 2008 Express connection to SQL Server 2008 Express problem

Hi guys, I have a problem with Visual C# 2008 express (SP1) connecting to SQL Server 2008 express. The "Add Connection" window (wherever initiated) doesn't list existing sql server and no option for sql server except a compact edition. Note that, I've got the VWD 2008 express (SP1) on the same machine which shows the window regularly (...

Assert that arrays are equal in Visual Studio 2008 test framework

Is there an easy way to check in a unit test that two arrays are equal (that is, have the same number of elements, and each element is the same?). In Java, I would use assertArrayEquals (foo, bar);, but there seems to be no equivalent for C#. I tried Assert.AreEqual(new string[]{"a", "b"}, MyFunc("ab"));, but even though the function re...

Generating documentation in Visual Studio 2008

I have a group of methods which I have applied the summary tag like so : /// <summary> /// Returns Foo /// </summary> /// <param name="fooID">the fooID</param> /// <returns>foo</returns> Was wondering if there is a tool in visual studio 2008 to generate a document out of these summaries. ...

visual studio 2008 theme

I just got into visual studio themes to color my ide. I found one I really like, but the problem is that it changed the size of the outlining +/- that I use a lot. How do you increase the size of this? ...

Why does visual studio .net 2008 lose debug ability after adding global.asax file?

I do not get the normal error message saying debugging is not enabled red error message. If i remove my global asax file, my code goes to my breakpoint. If i add the file back in, the project runs totally ignoring any break points. Here is the code inside my global asax file Public Class Global_asax Inherits System.Web.HttpApplic...

Microsoft ISA Server - Filter - Conversion from Visual Studio 2005 to Visual Studio 2008 gives an error

Hi, We have a filter for Microsoft ISA Server 2006 written in C++. The code was originally compiled using Visual Studio 2005 and hunky dory. Since we are using Visual Studio 2008 for everything else, I tried to convert this project to Visual Studio 2008. The conversion wizard runs fine and the code compiles correctly. However, when I t...

Shortcut for changing font size in Visual Studio

Does anybody know if there is a shortcut or something similar for changing the font size in the editor in Visual Studio 2008? What I mean is something like Ctrl + MouseWheel as in FireFox. Accessing the Options window and then selecting Environment > Fonts and Colors is fine if you don't have to change the font size all the time, but i...

How do I detect keypresses, VB08?

How do I make VB constantly check for keypresses? Keypresses ARE detected when debugging step-by-step, but that's it :( Here's my keypress code so far: Private Sub Form_Main_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress 'Keypress Q, A, or Z if the picture is seen...

VS2008 and SQL Express 2008

How do I make the SQL Express 2008 the default for VS2008 instead of SQL Express 2005? ...

How to load external page/content into a DIV

Hey guys, Here's my problem: I have do create a menu/list of actions (which would be easier if made with a control that accepts a DataSource, like listview or even Gridview with templated collumns). Each of this actions need a specific form to be exectuted, and I've already created all these forms in separated aspx pages. The question...

Reload a Gridview onclientclick

I have a gridview that is only shown in a modal popup. right before I call the modal popup I set a value in a textbox. The gridview inside the modal popup depends on that textbox's value for it's data to show up at all. SO onclick I want to reload the gridview so that it will reload with the textbox's value. Any ideas? ...

SubSonic Schema Errors

Hi, I am running VS2008 in .net 3.5 and trying to get SubSonic 2.2 running. My database is called Test, the table in the DB is called TestTable. It is being run on SQL Server 2005. I get the following "warnings": Could not find schema information for the element 'SubSonicService'. Could not find schema information for the attrib...

How do I create a commit comment template for ankhsvn?

I'm using AnkhSVN with Visual Studio 2008. I'm looking for a way to setup a default template for every commit comment. Is there a way to configure this? ...

Problems using SVN with VS 2008

I've been reading about how SVN works with Visual Studio. I'm using VS 2008 and worried about possible problems of using SVN with VS 2008. Can anyone share their experience with SVN + VS 2008? Thanks heaps! Note: I realized throwing GIT into the mix kinda diluted the real question I wanted to ask. So, I've restricted the question to ...

How do I add a cs file to an existing C# project?

A while back I wrote a little program in Microsoft Visual C# 2008 Express Edition. In it included a file called "ProblemReport.cs" with it's own form and ProblemReport class. I'm writing a new program and want to reuse this code. (still working in MS Vis C# 2008 express) In my new program, in the C# Solution Explorer, I right clicked...

What can cause Visual Studio to hang while debugging?

I have a vb.net project which sometimes, when running in the IDE, suddenly hangs. Normally this wouldn't be a problem. Just hit 'pause', look at the currently running threads, and find the deadlock (or whatever else). But now I'm running into a situation where not only does the program hang, but trying to pause it causes visual studio i...