visual-studio-2008

Populating a list box with variable names from LINQ generated class

I'm quite new to Visual Basic - using Visual Studio 2008 and can't seem to find a way to do the following: I have a few tables in a SQL Server database and have used LINQ to SQL to create classes of those tables. Here's a cut down example of what I'd like: listbox1 filled with table names - APS, SMPS, WCPC, CFLAPS Then from the Select...

VS2008 C++ /CLI generated code formatting/placement issues

New to VS2008... I am using CLR Forms to create a GUI. I put a button on the form and then ask the IDE to create a click event. VS2008 puts the code in the .h file and formats it 'badly' compared to our in-house guidelines. How do i get the code into the .cpp file and format it correctly? Worse, when I 'reset' the event, VS2008 doe...

Does Visual Studio 2008 work well with Windows 7 pro 64bit

I am just about to buy a Dell Studio 15 Laptop with Windows 7 Pro 64bit Has anyone faced any issues in installing or working with Visual Studio 2008 on Windows 7 Pro. Or do I need to go for Windows 7 Pro 32 bit? [EDIT] Any issues with any other development tools, what about VS2008SP1, Azure Add ons, Sql Server 2008 express, Virtual Ser...

Visual Studio 2008 Template for SQL Agent Jobs ?

I was looking for a template to create and manage SQL agent jobs on a SQL instance. In the project template "SQL Server 2008 Server Project" I couldn't find any and neither in the "SQL Server 2008 Database Project". I would like to manage my SQL agent job definitions as scripts within TFS like all the other database/server objects. ...

VS 2008 : How to publish with out DLLs ?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only asps files and dll's , Instead i want to use the aspx files and aspx.cs file .This would help other developers to download the code and mo...

Using a VS setup package to update a registry key

I can't get a setup package to update the following default value: HKEY_CLASSES_ROOT\tel\shell\open\command It will create the value on install, but won't update it. Any clues if this is possible? Thanks Ross ...

Exclude file types from search in Visual Studio

Often when I want to search through my code in Visual Studio, I know the thing I'm looking for is in some C# code. However, as I've used the same variable name in a javascript file, I have to wade through all those search results too. This gets even worse when the text I'm looking for is also used in a third-party javascript library that...

C++ IntelliSense 'auto' feature? Where is it? How to get it 'on'?

I would like to enable the IntelliSense 'auto' feature (like the Visual Studio C# 2008 Express) but I am using Visual Studio C++ 2008 Express Edition and in the Tools > Options > Text Editor > C/C++ (there is no option 'IntelliSense' (like Visual C#). How do I get this feature enabled? I know I can get a shortcut in place (CTRL-space etc...

Validation failed but moving to next page

I have regular expression validation in a page which checks whether the entered value in the text box is a numeric, it is not numeric it gives error message says "it should be numeric" but when i click on the next button of the form .. it navigates to the next page. But it shouldn't be. How to solve this? Protected Sub btn_View1_Next_...

How I bring back property thingy in VS2008

I accidently closed the property thing in VS2008, you know the one where when you're using Winforms you can edit like a controls text, font, dock, anchor, etc, etc. How I get it back can't find! To clarify it's the side panel thingy where you can edit control properties... usually goes side by side with the Toolbox, like you can't deve...

the element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent element's content model is empty

I inherited a web application that makes calls to a web service. It is being developed in VS2008 SP1 and deployed to IIS6 (2k3 Server R2). Since I upgraded to Windows 7 Enterprise RTM, the following line gets added to my Web.config: <extendedProtectionPolicy policyEnforcement="Never" /> The problem is that when I deploy this applicat...

What is an Event Handle?

I have a handle leak in a big old program. Using sysinternals handle.exe I deduced that the type of handle that is leaking is an "Event" handle. But I'm not sure what parts of my code I should be looking at. Is there a list somewhere of functions that return handles to events? EDIT: There is not a single instance of CreateEvent, CreateE...

Two "Bookmarks" menu items on the Edit menu in Visual Studio 2008?

I am building a program that will display on-screen during presentations the keys I press + what they mean for the currently active application. I thought I'd add all menus and hotkeys for my Visual Studio, but I noticed one odd thing. When I press Alt+E, F, for Edit->Find and Replace, the sub-menu pops open, but when I press Alt+E, K ...

Template function with dependent type parameters within template class

Hi, I've been trying to do this simple stuff and Visual studio 2008 does not seems to like it. template <class CharType> class SomeClass { public: template <class T1, class T2> static bool SomeOperator(const typename T1::const_iterator& p_Begin1, const typename T1::const_iterator& p_End1, ...

In visual studio, is there a way to step back to see what the few lines executed before were?

In visual studio, is there a way to step back to see what the few lines executed before were? I hit an unhandled exception in my code, and what I would like to do is step back (without re-executing) so I could see the class/method that called the method that threw the exception. This is in C# ...

How to copy an arbitrary file into a Visual Studio test run 'out' folder

I am trying to use a third party product secured with XHEO licensing and write unit tests against it. I can get the .lic file to copy to the regular project's bin directory (with either a post build or 'build action'), but the actual test itself doesnt seem to be running from there but from a constantly changing 'out' directory. A licen...

Find checked out files and users in SVN

How to find the list of user checked out and what are all the files are checked out on SVN as like VSS "Status Search". I'm using Visual studio 2008 and it was integrated with SVN by AnkhSvn. ...

Find missing references in Visual Studio

I have a huge solution file with lots of projects in it. I suspect that some of the projects that are referenced to by other projects are missing from solution. Is there an easy way to detect missing references in Visual Studio? (I am using 2008) ...

Visual studio 2008 keyboard shortcuts

In VS2008 I'm trying to add a keyboard shortcut for "Get Latest Version (recursively" and "Rebuild Solution". I go to tools-->options-->environment-->keyboard found "File.GetLatestVersion", "File.GetLatestSolutionFiles" and "Build.RebuildSolution". I chose "use new shortcut in" to be Global/VisualStudio, but in both cases no shortcut ...

Accepting all Visual Studios suggested changes for Option Strict On conversions

I am in the middle of porting a colleagues console application code to within another application. He inadvertently forgot to switch Option Strict On when developing so when I have brought it across I have received 100> errors for converting x type to type y. Is there a way in visual studio to auto accept all the suggested conversions ...