visual-studio

User deletes file from install and triggers automatic reinstall of .net application

Hi all, In short I'm after a setting in a .net installer project that turns off automatic reinstall if the installed files are deleted. I've built a c#.net application using VS2005. After install on the client machine the user has complained that if they delete a file contained within the installation the reinstaller kicks in. The rei...

How to make Error List window automatically active during compilation in visual studio?

Hi How to make Error List window automatically active during compilation in visual studio instead of default Output window? ...

How to break on Insert in Visual Studio / SQL Server 2005

II'd like to use Visual Studio to break whenever a record is inserted into a certain table, so I can see the values being inserted and the call stack from that moment. Is that possible, or am I stuck with stored procedure debugging only? ...

Debug ActiveX

Hello, I am trying to fix a bug on an ActiveX control. Is it possible to debug it from within Visual Studio 2008? ...

What could cause ASP.NET to skip lines in debug?

I never had this problem before, but I reinstalled my computer recently and Visual Studio is not behaving well in debug for an ASP.NET site. I am attaching visual studio 2008 to the w3wp process to debug a website. When I am debugging a method line by line with F10, sometimes visual studio will decide that it continues until it encount...

.NET 2.0 Setup Project in Visual Studio 2008

I developed a win forms app targeting .net 2.0. All of this is in Visual Studio 2008 sp1. I did this because I didn't really need 3.0+ features in the app. and I didn't want the clients to have to install a gigantic framework when they could just install a semi-huge one. Well, when I create a setup project for the app, build it, instal...

Using visual studio for developing mono applications

How do I use Visual Studio to develop applications on Mono? Is this possible? ...

How to build a Visual C++ Project for Linux?

Hello, What's the best and easiest way to build a c++ application, which was written with Visual Studio, for Linux? The code itself is ready - I used only cross-plattform libs. Is it possible to prepare everything under Windows in Visual Studio and then build it with a cli tool under Linux? Are there any docs describing this? Thanks,...

Developing and debugging mem-hogging C# apps

I have a C# app that must link with a 32-bit library and also needs to use the maximum amount of memory possible (imaging app); we run the app on XP64 desktops, thus we are using WOW64, targeting builds in Visual Studio for x86 (and doing an editbin /largeaddressaware post-build). We're encountering a few problems: In the Visual Stud...

Visual Studio 'Publish' command fails

I'm working on a moderately sized WebForms project. Due to the peculiarities of management here, I have to upload the site to a remote server in order to test (no localhost testing). I'm using the 'Publish' command in Visual Studio 2008. Sometimes, it even works. Most of the time, I inexplicably get a "publish failed" in the bottom left ...

How to get Visual Studio's designer to render CSS correctly in an ASP.NET Web User Control?

When developing a web user control, I'm styling everything with CSS. Whenever I look at the control in the designer, none of the CSS is rendered, or course, because I'm not looking at it in the context of the page where my link element is declared to my CSS file. Plus, Visual Studio will include a warning: The class or CssClass valu...

Calling Visual Studio 2005 external tool without changing focus

While editing a file I want to use a hotkey to call an External Tool that I have setup to use the "Output" tab. Currently when I use the hotkey the focus leaves the edit pane and goes to the "Output" window - I want the focus to not change from the edit pane. ...

Debugging sometimes very slow

Hi, I'm using VS2008, in a normal mid-size solution. Sometimes, debug stepping becomes very slow. A padlock gets rendered on the every file tab for every "step" (F10/F11), and it can take up to two seconds for every step. That makes debugging very annoying and slow. Has anyone seen this problem? ...

Can T4 templates use the same library

I have a library that defines a class namespace ClassLibrary1 { public class Class1 { public static readonly int Rate = 5; } } In the same lib I add a tt file <#@ template debug="false" hostspecific="false" language="C#" #> <#@ output extension=".cs" #> <#@ import namespace="ClassLibrary1" #> <#@ assembly name="C...

Windows Function

In my project i have 2 radio button "File" and "not File" and i also hav a textbox called "width".. I need to disable the text box when i click on "not file" radio button and once i click "file" radio button it should enable the textbox.. Can u tell me the function in Windows programming in visual c++ EDIT : "Add variable" is disabled...

DataGridView: FullRowSelect and Focus

I've got a DataGridView in a modal window with a list of options for my program. The grid has two collumns. The first one contains a checkbox for selecting that option, the seccond is the name/description of that option. The winform also contains OK and cancel buttons but that's beside the point. The code below does what I want it to. Be...

T4 Templates and Visual Studio Item Templates

Is it possible to create a Visual Studio item template that generates from a T4 template? My google-fu does not seem powerful enough to yield an answer! ...

Optimization settings in VS

I am working on an application/GUI created with Win32/ATL . So there is UI field( text field) which works fine as designed in debug build. With release build it gets malformed and it looks like the width of text field is infinite. It works fine in debug build but creating issues in release build. So my question how same code can work in ...

Resources (resx) maintenance in big projects

In a big project where you have lots of resources (resx) what would be the right approaches and/or tools of translation in order to save time, at the same time keep everything in order and leave nothing behind. More precisely, how to find (as far as translations are concerned) what has been modified (adds and removes are easy) of an ent...

How to change the loading path of references in .NET?

I want a setup like this: +- /ApplicationFolder -- App.exe -- Core.dll -- AnotherShared.dll +- /PluginsFolder -- plugin1.dll -- plugin2.dll But because plugin1.dll references to Core.dll and Shared.dll when I compile the application it drops a copy of "Copy.dll" and "Shared.dll" to plugins folder as well and if I remov...