visual-studio

How to figure out why VS hangs?

Suggestion from a work colleague - when VS is very very slow or is hanging: Open a second copy of VS and attach its debugger to the first copy. When the first copy hangs, pause it in the second copy and look at the call stack.. I thought it was a cool idea... but would am I missing something here? Are there any pitfalls wit...

Exception Catch Failing? Visual Studio mysteriously hangs...

So I've got this exception defined, protected constructors, static constructor methods (so all the exceptions are generated with the same formatting and I don't have to fight in the constructors. Anyway, this is besides the point... (not my issue? let's leave that alone k?) public class ValidationException : Exception { // Constructo...

Add a image to RadioButton in a ListBox

I have a List Box hwich is modified in a such a way that each row will have Radiobutton .Now my requirement is each of these Radio button must have a bitmap image followed by some text . i have codejock xtremetoolkit 13.4.0 installed . I am new to UI design and xtreme toolkit.Can any one help me out please. ...

List control with one column having a dropdownlist

I am having a ListCntrl in my Ui i will be having 3 columns and my second colum must be a dropdown like combobox . i dont know how to modify the default ListCntrl can any 1 help me out. I have Codejock Extreme ToolkitPro 13.4.0 installed. I am new to Ui design can any one help me out please ...

Visual Studio C# auto new lines

Hi, When writing lines to console, compiler automatically adds new lines, I mean: using System; class Hello { static void Main() { for ( int i = 0; i < 10; i++ ) { Console.WriteLine("{0}", i); bool bulas = i % 3 == 0; if ( bulas ) { Console.WriteLin...

Can I add an msbuild import element with DTE.Project?

I'm working on a VS plugin for handling a new test type. One of the things we want to do is add an MSBuild import to the project file when one of our tests is in the test project, to run our custom build tasks. I can add the import element by using Microsoft.Build.BuildEngine.Project.Imports, but if I save the project file via the Buil...

decompiling an asp.net site

hallo all i have an asp.net site which i have no source code for it. anyway i would like to decompile the whole site and that way i can work on it agian. how can i decompile an entire website easily to c# and not do it file by file with feflactor? please help me with this, thank you! ...

How to create a Visual Studio extension to display a block of color over a hex value?

I was told that in Visual Studio I can "create an extension" to create a block of color when the cursor hovers over e.g. "DF7401" or "ffcccc". How would I do that? ...

Strong Name Keys on Windows 7

Hi Attempting to use http://code.google.com/p/moq/ in VS2010 running Administrator on a Win7 virtual machine. I'm getting an ArgumentException: Unable to obtain public key for StrongNameKeyPair Have changed permissions here to be Full Control for Everyone C:\Users\dave\AppData\Roaming\Microsoft\Crypto\RSA I can't get any projects t...

Why isn't this DirectoryInfo comparison working?

var dirUserSelected = new DirectoryInfo(Path.GetDirectoryName("SOME PATH")); var dirWorkingFolder = new DirectoryInfo(Path.GetDirectoryName("SAME PATH AS ABOVE")); if (dirUserSelected == dirWorkingFolder) { //this is skipped } if (dirUserSelected.Equals(dirWorkingFolder)) { //this is skipped } Whilst debugging, I can examin...

C++ Can I print the content of 1 or 2 dim array using Visual Studio's Command window?

C++ Can I print the content of 1 or 2 dim array using Visual Studio's Command window? I guess it comes down to whether a "command window" support some kind of loop and print (?) syntax or not. ...

How to manage versions of a software in a CVS with lots of libraries

We are developing a large software project which consists of a large number of projects, components and libraries. Our management has decided that for every deployment a snapshot of the entire system has to be saved so when a problem arises we can easily have the exact version of the entire system. The usual solution would be to branch t...

Can I exclude a file from being searched when doing refactoring with ReSharper?

Is there any way, when doing e.g. a rename class refactoring with ReSharper, I can exclude certain files or projects in the solution from being searched? I have one project in my solution that ReSharper takes forever to search through whenever I run a rename class, and I know that in 99% of the time, the refactoring does not affect this...

How to let Visual Studio to add references according to USINGS?

Hi, I realized that when dividing a project into two in Visual Studio (2010) I'm still looking for references that are missing in the new project. Can Visual Studio do that for me? It can find all the namespaces I use so it should be easy for it. Thanks! ...

Access MySettings from other Project in Solution

Is it possible to access the My.Settings of an other DLL referenced in the current Project? I have a Database project in which Settings the ConnectionString is stored. I need access to this Setting in an other Project(for Log-File). ...

Removing all unused references from a project in Visual Studio 2008 / 2010

Hey I just wondered if it possible within Visual Studio 2008 / 2010 to automatically remove all references from a project that were never been used. ...

Visual Studio solutions in Qt Creator

Hi, I am using Qt 4.5 and having Qt Creator as the IDE. I am quite comfortable with it. I know we can open the .pro files (from the Qt Creator) in the Visual Studio IDE. But how about the reverse? i.e How can I open a visual studio Qt solution (.sln) in Qt Creator? Is it possible or I have to create a pro file again for the project? T...

How can i use FindControl method in asp.net?

How can i use findControl and how can i get id's according to FindControl method? i need to get all TextBox data there are 40 textbox. And TextBoxid data... i reall want to learn also linq method ;) protected void Button1_Click(object sender, EventArgs e) { // SetRecursiveTextBoxAndLabels(PlaceHolder1); ...

Solution wide app.config / web.config?

Hello, I have a solution with one asp.net-mvc-2 project, one web service, one class library and three normal desktop apps. Currently I need to copy all app.config settings from one project to the other. That is a nightmare if I want to change something. I know there is a solution to store all these information in the global .config fil...

Intelisense not working in Visual Studio 2008

I'm trying to type int and press Ctrl Space to show int, Int16, Int32 ... However it is not showing up, but when I press Ctrl J it works. I've tried to press Ctrl Alt Space as suggested in some places, but nothing changed... How can I restore it? ...