visual-studio

Unit Tests in Visual Studio 2010

Hi, i am trying to create a Unit test for a WinForm in a Visual Studio 2010 project. I add a new "Coded UI Test" to my project, open up the code file, then right click and select "Generate Code for Coded UI Test" -> "Use Coded UI Test builder". I then start my application up, select "Record" on the UI Map control. I run my tests (in this...

Convert Subclass to Inherited Class

I have a C# .NET 2.0 project A (class library) that has a form (TreeForm) that uses Tree objects. I have a project B that has a class Oak that inherits Tree. The class Oak adds some properties to Tree. class Oak : ProjectA.Tree { public string LeafColor; } TreeForm.cs in the class library is a form that has a DataGrid that databi...

How to customize an installer's UI

I am building an installer for my windows app and have done this through a setup/installer project in visual studio. I was wondering how to customize he UI of the finish dialog box? I want to add a couple of check-boxes and launch an app after the user closes the finish box. Is there a way to do this in Visual studio itself or does it ...

How to control a charcter in an grid to move arround using user input of keypoard arrows?

I am programming a snake game using c++ and I first designed an array(grid) adn my question is how can create a character that i can control using arrows on keboard,, if possible can any one give me the exact code, thank you ...

ctypes DLL with optional dependencies

Disclaimer: I'm new to windows programming so some of my assumptions may be wrong. Please correct me if so. I am developing a python wrapper for a C API using ctypes. The API ships with both 64 and 32 DLLs/LIBs. I can succesfully load the DLL using ctypes.WinDLL('TheLibName') and call functions etc etc. However some functions were not ...

how to use .mdf while developing

I use a .mdf database for my asp.net Mvc project. The project is on source control on a tfs. When I debug the project, Visual Studio copies the database in to the debugmap. The problem is, when I debug next time, the changes (while testing the previous time) in the database are gone. The reason of this I know, Visual studio copies the o...

Visual source safe headaches - Deleting files

I will pre-empt and say we are stuck using VSS here so changing it is not an option. Anyway, one person, 'user a' is deleting a file from their project. They then do a 'get latest' on the folder and it doesn't come back, so the user assumes they have truely deleted it from the project. We have another user, 'user b', who then looks at ...

better understanding of getline() and cin

Trying to get some basic understanding of console functionalities. I am having issues so consider the following... #include "stdafx.h" #include<iostream> #include<conio.h> using namespace std; /* This is a template Project */ void MultiplicationTable(int x); int main() { int value = 0; printf("Please enter any number \n\n"...

How do you select the columns displayed in Pending Changes?

Open up TFS Pending Changes. Can you add / remove columns to that display? I thought it was tied to the selected query, but change the columns in that query did nothing for the results displayed in Pending Changes. ...

Looking for a variety of Windows Form tutorials for visual studio.NET C++

Looking for a variety of Windows Form (winforms) tutorials for visual studio.NET C++ I found a few basic ones: How to: Create a Windows Forms Application Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Any others? Thank You. ...

update Visual Studio jquery release

Now that Visual Studio 2010 has jQuery support, I'm wondering how I can update the release version? When you currently create a project, it automatically creates the 1.4.1 files, but there is now the 1.4.2 release on the jQuery.com website. How can I tell VS2010 to use the more recent version of jQuery? ...

Visual Studio 2008 Unresponsive When Opening JavaScript Files

I'm starting a new ASP.NET project that I'm trying to use some jQuery with, but whenever I try to open .js file (blank or containing a few lines of javascript) in Visual Studio (SP1), it often hangs; showing the .js filename in a new tab, but the actual text editor window showing whatever was drawn to the screen before opening the .js fi...

TFS and working with multiple solutions

How do people generally deal with TFS when you've got to work with multiple solution files? If you've got one instance it's easy because you can always go to that window for the source control explorer, pending changes, check on builds or work items. But when you have 4-5 solutions, it becomes tricky to deal with. You might expand some f...

Adding option to view readme file on the final screen of visual studio deployment project

I've got a visual studio deployment project and would like to add an option to view a readme file from the final screen. So basically there would be a link or checkbox that the user can select if they want to view the readme. Does anyone know of an easy way to do this? ...

Settings designer file complains when protecting configuration for connectionStrings in App.Config in VS 2010

Hi, I am trying to encrypt Configuration Information Using Protected Configuration in Visual Studio 2010. I have the following info speicifed in the App.Config file: <connectionStrings configProtectionProvider="TheProviderName"> <EncryptedData> <CipherData> <CipherValue>VALUE GOES HERE</CipherValue> </CipherData> </Encrypted...

Good Unit testing book

Can anyone recommend a good book for beginners about unit testing with visual studio 2008 (c#) ? Thank you! ...

Updating an image's ImageUrl within a Repeater

I hope someone can help me. It's a pretty newbie question, I'm afraid. I have an image inside a repeater, and I would like to change its IMAGEURL based on parameter that's being passed to it. <asp:Repeater ID="Repeater" runat="server"> <HeaderTemplate> <asp:Image ID="imgType" runat="server" /> </HeaderTemplate> ...

MFC String Table Numeric options

In the String Table for an edit box for numeric entries I can do: 1E__C X(10): Alphanumeric 10 1N__C 000: Numeirc 3, with leading zeroes (cannot insert 0) 1N__C 999: Numeric 3 ( cannot insert 0) 1N__C NNN: Numeric 3, 0 can be inserted (just ONE 0) Is there an entry to the String Table so that the following entry can be inserted to ...

Per-project source code provides in Visual Studio?

Can I use multiple source control providers at the same time in Visual Studio? Global switch is not enough for my needs (I have one project in SVN, another one in TFS etc.) ...

Looking for alternatives to the database project.

I've a fairly large database project which contains nine databases and one database with a fairly large schema. This project takes a large amount of time to build and I'm about to pull my hair out. We'd like to keep our database source controlled, but having a hard getting the other devs to use the project and build the database project...