visual-studio

Visual Studio and MySQL

I have been using Microsoft Visual Web Developer 2008 Express Edition. Originally, I made a website with a MySQL back-end. Then I discovered the .Net web authentication, and moved to MS Access as I could, with some modification, make the web authentication work (but not all the features). For a future release of my site, I moved to MS...

Internet Explorer does not show links styled as they are in Visual Studio designer

I use a master page and a theme. After finding that the style does not correctly work in the browser, I took the rendered html and created an html page in visual studio in order to see everything in the designer. I foun the style is showing correctly in visual studio disigner. When I tried to see the page in IE, the styl again didn't wor...

What to look out for when moving from Visual Studio 2005 to 2008?

We're planning on updating our developers from Visual Studio 2005 to 2008. Are there any common "gotchas" to look out for during this move? My major concern at the moment is that we use WSE 3.0 quite a bit (mostly to consume external .asmx web services, but we also host a few ourselves). Will that be an issue since WSE 3.0 has been ...

Is the "loband" version of MSDN preferable?

I don't know about you, but for me MSDN online walks the narrow line between "unusable" and "painful". Every click leads to a page of 1 line of human content and 500 lines of auto-gen garbage, a reload of the table of contents, code examples in 8 languages, mouse overs begging for attention. It was so bad that I had started writing my ow...

C#: How to convert a Website project to a Web Project

UPDATE: All of these problems was for converting a Website application to a Web Project in Visual Studio. Once I dug in and I found the solution, as I marked as answer below. Basically, if you are wanting to upgrade/move your Website project to a Web Project, you will run into a number of errors. The short how-to is in the answer belo...

What language to use

I've programmed in VB5 (and a little VB6) in the past, used MS Access at a 'writing code' level but this was all a few years ago and I've only used PHP more recently. I'd like to get back in to programming for the PC (Windows...) but not sure where to go with a choice of language. VB.Net? C#? ....any suggestions? Something easy to pick u...

visual studio - remove custom control from designer window

I have a user control panel that has two buttons on it. Other user controls inherit from this control and set a property to true if the buttons should be visible. Everything runs how I want it to but what I'm looking for is a way to clear these buttons from the designer window for forms where this property is left at false. looks like: ...

I want to delete all bin and obj folders to force all projects to rebuild everything

I work with multiple projects and I want to recursively delete all folders with the name 'bin' or 'obj'. That way, I am sure that all projects will rebuild everyhing (sometimes it's the only way to force visual studio to forget all about previous builds). Is there a quick way to accomplish this (with a bat file for example) without ha...

How to Set the Working Directory in NAnt?

I am just getting started using NAnt. I was working from a tutorial, and just trying to set a target to clean my solution on build. My Visual Studio Solution structure is as follows: Solution Folder Project Folder Project Folder Tools Folder NAnt Folder The NAnt .exe file resides in the Tools/NAnt folder. My .build file is also i...

Custom Web Control, ITemplate not recognised

Hi, Hopefully an easy one, I have created a Custom Repeater control that extends System.Web.UI.WebControls.Repeater. I Have added two ITemplate Properties to this control and add these when required and in the desired manner. Everything is working absolutely fine but I'm having a problem in Visual Studio having these new Templates reco...

A project with output type of class library cannot be started directly - with a startup exe

Firstly I'm completely aware of this message and why it happens normally. It's not that I'm just trying to run a dll (like this question). I have a project that compiles to a dll but has a startup program specified in the project properties. Most of the time I'm able to right-click on the project and select Debug > Start new instance, a...

Should I compile with /MD or /MT ?

In Visual Studio, there's the compile flags /MD and /MT which let you choose which kind of C runtime library you want. I understand the difference in implementation, but I'm still not sure which one to use. What are the pros/cons? One advantage to /MD that I've heard, is that this allows someone to update the runtime, (like maybe patch...

What is tab #13119 on my VS 2008 toolbox?

I only noticed this last night, as I have not used the toolbox on this particular project for some time. Suddenly, all my Telerik controls, previously on their own tab, were missing, and this mysterious, empty tab #13119 was there. I added a new tab for Telerik and added all the controls, but the Telerik tab remained invisible, althoug...

Is there a command line option like devenv.exe /Edit for Sql Server Management Studio

I'm using visual studio's external tools to open .sql scripts in Sql Server Management Studio (SSMS). The problem is, each time I use the external tools command to open a .sql file from visual studio, it opens a new instance of SSMS. Visual Studio has a switch /Edit that will do this, is there one for SQL Server Management Studio? ...

log2 not found in my math.h?

I'm using a fairly new install of Visual C++ 2008 Express. I'm trying to compile a program that uses the log2 function, which was found by including using Eclipse on a Mac, but this Windows computer can't find the function (error C3861: 'log2': identifier not found). The way I understood it, include directories are specific to the IDE...

VC++ compiler and type conversion?

When I moved a program from a Mac to this Windows PC, the VC++ 2008 compiler is giving me errors for passing unsigned ints to the cmath pow() function. As I understand, this function is not overloaded to accept anything but floating-point numbers. Is there some compiler flag/setting that will ignore these errors? Also does anyone know h...

What are good tools for identifying potentially duplicated code for C# Express users?

see also "Any tools to check for duplicate VB.NET code?" A friend of mine only as access to the Express editions of Visual Studio and I am trying to help him refactor to remove a lot of duplication. ...

Asp.Net 2.0 and Asp.Net 3.5 code compilation models – are there any differences?

I've just started to learn about Asp.Net 3.5 compilation model, but most articles mostly talk about Asp.Net 2.0 compilation model and how it differs from previous versions of ASP.NET compilation model. So I wasn't able to find any article explaining if there are any differences between ASP.NET 2.0 and ASP.NET 3.5 compilation models. Thus...

Pre-build events for Visual Studio 2003 Deployment projects?

I have multiple Visual Studio 2003 Deployment projects that include the primary output of another project. One of the differences in the Deployment projects is that they use different primary output settings properties. These settings get copied to a PrimaryProjectName.exe.config file when I build the primary project, so currently my bui...

Creating a Custom DTD for Visual Studio

I've got some custom templated controls which take JavaScript as template content, like so: <ns:Custom runat="server"> <contentTemplate> var a = new Array(); for (var i=0; i<a.length; i++) { // do something } </contentTemplate> </ns:Custom> I want VisualStudio to treat the content of exactly the same as it does ...