visual-studio-2008

How to detect when the mouse leaves the form?

I have a form with a lot of controls on it. How can I detect when the mouse leaves the form? I've tried wiring up a MouseLeave event for every single control and the form, but that does not work because those events fire all the time as the mouse passes over controls. Is there a way that actually works.? ...

How can I renew my expired ClickOnce Certificate

I need to make some changes to a clickOnce application that I haven't touched for over a year and therefore the certificate has expired. I've read that publishing with a new certificate will make the application fail because it will be signed with a different key. Therefore I think I need to use the same certificate but not sure how ...

_CRT_DEBUGGER_HOOK throws exception

Hi, I'm having a problem converting my program from VS2005 to VS2008. When I run the program in VS2008, the application starts up fine but when start playing around with the application it crashes giving me this error: "Microsoft Visual Studio C Runtime Library has detected a fatal error" And then the debugger points me to this functi...

Are there checks I can turn off in VS2008 to make editing faster?

While I like that Visual Studio shows me typos, open tags, and checks my methods, etc., sometimes I'm doing SUPER simple things like changing a TextBox ID, and it's really slowing me down. Any recommendations? Are there settings I can tweak to turn off some auto-checking? ...

Can't connect to mobile device

I've been developing an application for a second generation Workabout Pro from PSION Teklogix. Recently my company underwent an upgrade re: operating systems and Visual Studio versions, so I'm stuck with Windows Vista (and Visual Studio 2008). I've connected the same Workabout Pro unit I've always used for development, and I can't inst...

ASP.NET Development Server simulates IIS6 or IIS7?

In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched to simulate a Web Server. I'm wondering what server does it simulate? IIS6 or IIS7? Is it possible to customize what server it simulate? ...

Linq to SQL Foreign Keys

DDL for Database Tables: Users: id - int - identity name - varchar - unique PCs: id - int - idnetity name - varchar - unique userid - FK to Users Apps: id - int - identity name - varchar pcid - FK to PCs I created a DataContext using the Linq To SQL designer in Visual Studio 2008. I want ...

My ToolBox Show Multiple Copies Of The Same Control (VS2008)

My Visual Studio is all messed up and I have no idea why. See the screenshot below. The controls are repeated 3 times. I tried reseting the toolbox; still no luck. The solution contains one ASP.NET Web Application and few class library. None of the projects have referenece to System.Windows.Form, still components from System.Windows.Form...

Visual C# 2008 EE SP1 - Linq to SQL - Data Connection to remote server?

After upgrading my Visual C# 2008 Express Edition to .NET3.5, SP1, I've been unable to create new LINQ to SQL classes using a remotely connected database. I used to be able to do so fine. I open up a project (windows forms, class library, same behavior), and either use the New -> Linq To SQL classes method or go directly for adding the ...

Is it possible to export a WF diagram to visio?

I would like to be able to export my WF diagram from visual studio 2008 into Visio so I can better show it to non-programmers. Dose anyone know if its possible? I haven't come across any mention of it before, and I don't see anything that jumps out at me from VS. [EDIT: WF = Windows Workflow Foundation] ...

Creating a dataset.designer.vb from xsd

I have an xsd, , vb, xsc, and xss file for a dataset in VS 2008 that I copied over from another VS project, however I need to make changes to the dataset. Thus I got into the xsd file, created new columns, deleted ones that aren't needed, etc., etc. However I realized when I attempted to use the new dataset I did not have the vb code b...

What are the implications of using /Zi vs /Z7 for Visual Studio C++ projects?

Background There are several different debug flags you can use with the Visual Studio C++ compiler. They are: (none) Create no debugging information Faster compilation times /Z7 Produce full-symbolic debugging information in the .obj files using CodeView format /Zi Produce full-symbolic debugging information in a .pdb file for th...

What is the *.vshost.exe.config file?

When I compile an application with VS2008 I sometimes end up with 2 identical config files: *.exe.config *.vshost.exe.config What is the latter one for? ...

Visual Studio C# statement collapsing

When editing really long code blocks (which should definitely be refactored anyway, but that's beyond the scope of this question), I often long for the ability to collapse statement blocks like one can collapse function blocks. That is to say, it would be great if the minus icon appeared on the code outline for everything enclosed in br...

Using PrintDlg on Vista x64 does not work, works fine on 32 bit and XP

We've got an app with some legacy printer "setup" code that we are still using PrintDlg for. We use a custom template to allow the user to select witch printer to use for various types of printing tasks (such as reports or drawings) along with orientation and paper size/source. It works on XP and 32-bit Vista, but on Vista x64 it gets a...

Is there any good replacement for SharePoint Designer?

If you've ever used SharePoint Designer, you'll know it's bad. Really bad. Is there any good replacement for that? Is there any consideration I must take account of if I want to build my own Visual Studio Add-in connector to connect to it? Anything you know that I should be aware of? I just hate the slowness and the way SPD (SharePoin...

Calling two functions with the same name from two different C DLLs

I have two C DLLs that I need to access in the same executable. I have header files and .LIB files for both libraries. Unfortunately a subset of the functions that I need to access have the exact same names. The best solution I have been able to come up with so far is to use LoadLibrary to load one of the DLLs and explicitly call its met...

Permission Denied errors with Visual Studio 2008 under Vista

I've taken the plunge and upgraded (or maybe downgraded?!) from WinXP to Vista. Everything appeared to be working ok except that when I fired up my machine this morning and opened my C# application in Visual Studio I got a few "Load of property 'OutputPath' failed. The entered path is not a valid output path" errors. I tried to rebuild...

Sharing types in WCF using VS 2008 not working

I am trying to share DTO's from my datalayer assembly between the client and WCF service. This works using svcutil, but doesn't work when using VS2008. VS2008 generates it's own DTO objects whereas svcutil uses the shared data type. The svcutil parameters I used are: "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcUtil" ...

How to find all pages that use a Master Page in Visual Studio

Is there a way to find all web pages that implement a specific master page in Visual Studio? I'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design view instead of showing all pages that use it. I do have Resharper if there is somet...