visual-studio

WPF Resource Management

I am writing a program that has to access images from a legacy data file format. (To be specific: The program is loading it's UI images directly from the data files of an old game) Since the images are all stored as Targa (TGA) files, I have to preprocess them into PNG files. I do that in a local application data folder. My problem is w...

Why is the winforms designer ignoring attributes on overriden properties ?

I've got a user control defined like this : public partial class FooControl : UserControl { private System.Windows.Forms.GroupBox groupBox1; ... I wanted to make groupBox1.Text accessible directly from the designer so I went for the obvious solution and created the following property in my FooControl : [Catego...

emacs completions or IntelliSense the same as on Visual Studio

emacs 22.2.1 on Linux I am doing some C/C++ programming using emacs. I am wondering does emacs support completions (IntelliSense in Visual Studio). For example when filling structures I would like to see the list of members when I type the dot operator or arrow operator. The same would go for function signatures that give me the types...

Compare date in javascript

I have a custom validator that points to a Client side script to validate a textbox. My date and time are separated into two textboxes - one with date in mm/dd/yyyy format and the other with time in hh:mm am/pm format. I need to make sure the textboxes together are not greater than now. How can i accomplish this? Here is what i have s...

Which files in a Visual C# Studio project don't need to be versioned?

I'm new to Visual C# Studio (actually using the Express edition, but another developer is using the full version), and we are using version control (svn). It's acceptable to me to add the project files to the repository, since this repo is just for the two of us using Visual C# Studio. But it feels like there are some irrelevant files i...

Visual Studio debugging - ignore exception in one place while breaking at it elsewhere?

I have some code which generates a large quantity of ArgumentExceptions on one particular line (which is in a different developer's code, so I can't just change it), which are then caught and handled appropriately. I'm trying to debug ArgumentExceptions which are happening in a different section of code (and are then caught and handled...

How much of Visual Studio is managed and how much of it is unmanaged in 2008 and 2010?

If anyone knows how much of Visual Studio is turning into managed code? I read in some sites that most of the Visual Studio 2010 is managed, compared to older versions where it was mostly native. Is MS finally showing some premise for writing their first line of business apps with C# and .NET? (Thus proving that .NET is more than capab...

Visual Studio 2008 - Build overwriting bin referenced dlls

I'm trying to figure out if what I'm experiencing in 2008 is new or something wrong with my installation. We have multiple web application projects and multiple class libraries. Both the web projects and class library reference the same third party dll, but each from their own bin. The third party dll in each of the web projects may ...

Get Visual Studio to run a T4 Template on every build

How do I get a T4 template to generate its output on every build? As it is now, it only regenerates it when I make a change to the template. I have found other questions similar to this: http://stackoverflow.com/questions/1293320/t4-transformation-and-build-order-in-visual-studio (unanswered) http://stackoverflow.com/questions/405560...

Are WPF and Silverlight on a collision course?

It seems like these two technologies, already similar, are on a path to merge into a single technology. There are a lot more WPF-like controls in the Silverlight toolbox, and WPF now has Silverlight's VisaulStateManager. At this point, it's probably fair to say that Silverlight has even surpassed WPF in terms of the number of themes avai...

Visual Studio + svn: Working copies on network drive or local?

We (small team) currently have our Visual Studio projects on a network drive (no version control). I would like us to start using version control, so I thought I'd install Subversion and put all the projects into an svn repository. Now the question is: Where should we put our working copies? Option A: On the local hard drive. Advantag...

Best way to build websites or applications with modular / reusable components

If I come to the point where I get a job that has almost identical requirements as a previous job, I try my best to reuse and repurpose previous work. It is never that easy and it usually takes some time (but not as long as redoing it from scratch!) Anyway, I have a few jobs coming up where they need identical login systems. Where as p...

Visual Studio overwriting UserControl parent when not inheriting System.Windows.Controls.UserControl

I am creating a series of UserControls that all have some similar business logic. So I tried to implement this common business logic in an abstract base class that all of these user controls would inherit from. The inheritance chain looks something like this: System.Windows.Controls.UserControl <-- MyControlBase (abstract)<--MyControl1,...

How to export a Project Builder for CE 6.0 subproject as a project?

I have an OS design project with some subprojects, I would like to try to compile one of this subprojects using the SDK of other platform. I don't have the BSP used to create this SDK, so I cannot simply add the subproject to a new OS Design for this platform. I think that the only way is to convert the subproject to a new project and co...

How can I get the exact compiler command line from visual studio?

I have to port the build of a DLL from building in Visual Studio to another build system. The DLL solution wasn't made by me and it's got lots of modified command line switches etc. I've copied the compiler/linker options from Visual Studio's Project Properties -> Config Properties -> C/C++ -> Command Line Project Properties -> Confi...

run MsBuild tasks (targets?) after the solution is built?

Since this question seems to have baffled / underwhelmed SO I will rephrase it with a partially formed idea of my own. Could I somehow set up a batch file or something that runs after the whole solution is built, and this batch file would call msbuild to build specific targets inside a certain project? In order for it to work, I would ...

How to elegantly prevent a webservice proxy from being exposed to COM?

I have a C# assembly that I use as an in-proc COM server consumed by an unmanaged C++ application. The assembly consumes a webservice that will not ever change so there's no need to ever update the webservice proxy classes. That's why the proxy classes are create donce and Reference.cs files are simply put into the repository and only co...

How do you structure your ASP.net sources in Visual Studio?

Do you have one solution with the web application project, class libraries, database project and tests? Or, do you segment it into multiple solutions? Why? I'm asking because we're trying to streamline this scenario for Visual Studio 2010 and I'd like to get input from the community on how you'd prefer to work. ...

TagPrefix containing StrongKey

I'm debbuging a web application that has a WebSite and a class library containg web controls. My WebSite, at design-time references the assembly with a Project Reference and Visual Studio automatically populates the Toolbox with the controls found in my class library. The problem is : When I drag them to the ASPx designer, Visual Studi...

How to automatically add <img> height and width in Visual Studio?

When I drop an html image onto my page (vs2005) the height and width attributes are not specified. Do I really have to edit the html by hand to add these? Or is there an automatic method? ...