visual-studio-2008

How to Best Setup a Website Project in VS.NET

I have very little experience with setting up a website from scratch in a .NET environment. As I am doing this now, I am wondering - what's the best way to go? Is it better to create a new Website Project, and include the various backend services and database code as part of that project, or is it better to split out the various aspect...

New to VS.net (VB.net) 2008. Windows 7 aero glass stuff.

Hey all, i have been using VB.net 2008 for a few months and i have a question. I compiled my program and ran it in a VM running windows 7. However, the progress bar looks like it does in XP. It doesn't have that cool look to it like I've seen in many other programs running in windows 7. I have downloaded the 3.5 .net framework with sp1 ...

Automatically add links to class source files under a specified directory of another project in Visual Studio 2008 solution

I want to share some class source files between two projects in Visual Studio 2008. I can't create a project for the common parts and reference it (see my comment if you are curious to why). I've managed to share some source files, but it could be a lot more neat. I've created a test solution called Commonality. The Solution Explorer o...

Visual Studio 2008 .dll files cannot be overwritten, access denied

This one is weird. Visual Studio 2008 seems to not be releasing its handle to the .DLLs getting created for my project, so the second time (and subsequent times) I build, when Studio attempts to overwrite the changed .dlls, it gets an access denied error. I also cannot copy/delete the .dll in question (Tasks.dll) while Visual Studio is...

Connecting to a SQL Server Compact Edition (.sdf) from an MFC application

Hey ! I'm building an MFC app in Visual Studio 2008 which classifies textures and I need some sort of lightweight database to hold the characteristics (just some doubles and strings) which can be: -carried around with the app on different computers; -be able to perform queries on it from the app (searches , updates ,inserts ,etc); Cu...

Cross-thread operation not valid (invoke required) for webform

I understand how the backgroundworker or threads are unable to update controls if not declared on the same level etc and how to create delegates to invoke the control event but how does one do this with web forms. Is there a similar method or function to prevent the cross thread operation not valid error on web forms? ...

Setting CPU target to x86 on .NET 2.0 project adds .NET 3.5 dependencies.

I have a project in VS2008 that targets .NET 2.0 framework. It was original set to build for AnyCPU. I changed it to x86 and for whatever reason, VS adds the following lines to .csproj: <ItemGroup> <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> <Visible>False</Visible> <ProductName>.NET Framework Client Profi...

Visual Studio watch memory consumption

Is is possible to watch the memory consumed in a given point of the application in Visual Studio 2008 and monitor its evolution in a simple way? ...

Issues with intellisense, references, and builds in Visual Studio 2008

Hoping you can help me -- the strangest thing seems to have happened with my VS install. System config: Windows 7 Pro x64, Visual Studio 2008 SP1, C#, ASP.NET 3.5. I have two web site projects in a solution. I am referencing NUnit / NHibernate (did this by right-clicking on the project and selecting "Add Reference". I've done this for ...

Is is possible/a good idea to edit workflows in Visual Studio?

I've been doing a lot of editing in MS Dynamics CRM 4.0 using the web designer. I'm wondering if there is a more efficient way to edit workflows and wondering if VS 2008 could be used (and if it is more efficient). If so how? Thanks! ...

Simplify CASE in VB.net code

Hey all, i am looking here to see if anyone would have a better way to acomplish this task below in less code. Select Case mainMenu.theNumOpened Case 1 Me.Text = "NBMsg1" Me.SetDesktopLocation(My.Computer.Screen.WorkingArea.Width - 302, 5) Case 2 Me.Text = "NBMsg2" ...

Code Analysis Error: Declare types in namespaces

Is VS2010, I analyzed my code and got this error: Warning 64 CA1050 : Microsoft.Design : 'ApplicationVariables' should be declared inside a namespace. C:\My\Code\BESI\BESI\App_Code\ApplicationVariables.vb 10 C:\...\BESI\ Here is some reference info on the error. Essentially, I tried to create a class to be used to access data in...

Any Addin for Visual Studio 2008 which would sort the imports?

I have seen plugins for VS 2005 and also for C# environment in VS2008 but not able to find for VB.NET environment in VS 2008.I want it to sort for each file, is there any addin for this? ...

Automatic login into asp.net site from flash movie

Hello friends, I have a landing page designed as a flash movie. Please visit http://ivautoinc.com. The movie contains login button. For now when you click on this button I am redirecting to asp.net site login page. What I need is if you click on login button, the login form which is designed within flash will be shown on the same movie....

Visual C++/CLI "An unhandled exception of type 'System.StackOverflowException' occurred in"

Hi, I have a game I am making, it is giving me this message... "An unhandled exception of type 'System.StackOverflowException' occurred in game.exe" To explain...I have a 2D array with 9 different opening moves and I am getting a random number to use as the array reference to retrieve the details needed for a move... you may get th...

Cannot Create a Asp.net MVC 2 project in Visual Studio 2008

I Installed Microsoft's Asp.net MVC 2 using the Web PI (on Windows XP) but it is never marked as installed! i have found the "system.Web.Mvc.dll" in "C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies" so i'm pretty sure it's indeed installed but i cannot create a new Asp.net MVC project in Visual Studio 2008 because the option...

How can i get a file from remote machine?

How can i get a file from remote computer? i know remote computer ip and 51124 port is open. i need this algorith:(this is a Windows Application visual studio 2008) 1) Connect 192.xxx.x.xxx ip via 51124 port 2) filename:123456 (i want to search it on remote machine) 3) Get File 4) Save C:\ 51124 port is open. can i access and can i se...

Script all SQL database objects into VS Database project

I'm trying to put my database scripts into a VS Database project (I haven't generated them yet). I'm assuming there should be some kind of "auto generate all" functionality, but I can't find anything. Or do I really have to generate them one by one manually from management studio? ...

Reference with resources not following (Visual Studio)

Hi all. I have a dll that I have made that works perfectly. I need to make some changes to it however so I simply made a console application to run it for trouble shooting it. The console application references the dll and simply calls it to run, then waits for user input. The dll is copied to the directory with the console app and e...

Prevent Visual Studio 2008 from rewriting inline code?

When writing inline code in an .aspx file and some lines down closing a statement with <% } %>, Visual Studio tries to be nice but messes it up by rewriting it all. Is there any way of turning this rewriting off, but only for inline code? ...