visual-studio

How do I open a WPF window from Visual Studio add-in ?

If I do this code in a clean addins template in Visual Studio 2008: public void Exec(.... { .... Application app = new Application(); MainWindows _mainWindow = new MainWindows(); _mainWindow.Initialize(@"C:\"); app.Run(_mainWindow); .... } Opens the window right first time, BUT I can't open the window the second time I ...

How to create new command in visual studio ?

Visual studio has predefined command that are accessible by type ctrl + /. For example >of myfile.cs will open the file named myfiles.cs I would like to have a command to go to definition of any type. For example >gotodef TextBox would do the same as if I pressed F12 on the word "TextBox" in the source code editor (view it shows all mem...

Visual Studio:How to show a link after installation had finished?

Within an installer build using Visual Studio 2008 I like to show a link to a website at the end of the installation that the user can click to open the URL inside the standard browser. Is this possible and if so how? ...

Visual Studio - Command to collapse all sections of markup/tags?

I use CTRL + M + O to collapse my code behind code, but I'm looking for a similar command to use in my markup page to collapse all my tags/views/divs/panels etc. Any ideas? ...

building .net applications without Visual Studio

I'm interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use different editors quite a bit and I'm thinking of changing over to using something that can keep me IDE free. Thanks! ...

diff/merge tool for TortoiseSVN within Visual Studio

Hi. We've recently "upgraded" from Visual SourceSafe to SVN based on recommendations on this site. Our current source control set-up is: TortoiseSVN with VisualSVN. We're very happy with it so far, but I was wondering if there's any additional benefits from using a different diff/merge tool than the one included (TortoiseMerge). Tortois...

Get blend of two colors in .NET

I have two colors in my .NET application that are user defined. I'd like to somehow get the color in between those two colors. It's the color in the middle of the gradient. Is there any way to accomplish this? ...

Enable PHP highlights in VS 2010 ?

I've heard that Visual Studio 2010 Beta 2 has support for PHP. When I load a PHP file though, it has nothing highlighted and is nothing more than a glorified text editor. Is there a way to enable it? ...

.NET and webservices: how?

Hello, Im trying to make a webservice in ASP.NET and get the data in a Smart Device Application. I have the standard HelloWorld webservice and i wanna get the data in my application, but when i try to add a web reference to my project, Visual Studio can't find any webservices running. If i start the WebService in the WebService projec...

I don't want to convert solution files when switching from Visual Studio 2008-2010. How?

I just got a new work laptop. I want to run Visual Studio 2010 Beta 2. However, the rest of my team is using Visual Studio 2008 with .Net 3.5, and I don't want to check-in the solution migration code into TFS. In fact, I don't want any migration code at all - I just want to use the old .NET Framework with our old solution, with the new I...

Looking for tool that can see tables and data in sqlCE - in computer that isnt have Visual studio or SQL server

i am Looking for tool that i can see tables and data in sqlCE - in computer that isn't have Visual studio or SQL server install on them ...

How do I set the icon for my program in Visual C++ 2008 Express Edition?

I want to set the embedded icon for my executable console program to a custom icon. I know this is pretty much the same question as this one here, but I'm using Visual C++ 2008 Express Edition, and the Resources View is not available (and the Project-context-menu->Add->Resource... is grayed out), so I'm at loss here. Will I have to upgr...

CVTRES : Fatal Error CVT1105: Cannot Seek In File

I was compiling my Windows Mobile project that is a image viewer and just when I clicked in the build button I got this error: CVTRES : fatal error CVT1105: cannot seek in file I'm using Windows 7 Ultimate with Visual Studio 2008 SP1. ...

VB.NET app works in IDE but throws an error when compiled and run on another machine

I have created an application using VB.NET in VS2008. When I run the app in the IDE on my development machine it works fine. It also works fine when I build it and run it as an exe on any machine that also has Visual Studio installed (at least 2005 and 2008 anyway) However, when I try to run the compiled executable on any machine with...

What's wrong with Project-> Asp.net Configuration?

When I click Project-> Asp.net Configuration in my VS2008 standard (in a asp.net MVC 1.0 .net 3.5 project, on Xp sp3)the little server starts up. No web page automatically opens. so I click the link in the little asp page icon at in the system tray and get redirected to http://localhost:29138/asp.netwebadminfiles/error.aspx I don't se...

Use an installer to add .NET User Control to Visual Studio Toolbox

Hello, I am creating a .NET user control that I will be distributing using a commercial Installer. How do I automatically add the user control to the Visual Studio Toolbox when my installer runs ? Thanks ...

File/Property rename problem in Visual Studio and Explorer

I am running Windows 7. In Visual Studio, if I try to rename a file by right-click/rename, it behaves as normal for a couple of seconds, then switches out of edit mode. A similar problem occurs when I try to change a property, for example the name of a control. When I click in the property value, I can start editing, but then it assumes ...

Strange Visual Studio 2008 Crash when editing CSS or in Designer - help!

So visual studio 2008 SP1 has started crashing on me when working on web applications, and nothing I do seems to work. Things I've done: - Reinstalled - Uninstalled the web authoring component and reinstalled - this seems to fix the problem for about an hour - Cleared temp files - Run VS in safe mode Yet, when in design view, or editin...

Visual Studio Setup Projects: Cleartype

I use a Visual Studio Setup project to create an installer for some assemblies. However, the fonts the installer uses are always aliased, and don't appear to be the Windows standard. (Note that the installer text uses aliased text rendering, but the window title uses ClearType) Is there any way to update the MSI to use ClearType? ...

Running application in Visual Studio Express

I am coming from XCode and this is probably a stupid question, but after I build my program successfully, I try to click on the Application in the debug folder and the window just closes. How do I run my application that I create? ...