visual-studio-2008

How to dynamically give customized text/naming conventions to dynamically generated labels/checkboxes?

I am trying to give names to my dynamically generated checkboxes through a for loop an algorithm. Coming up with the algorithm was pretty simple but I am unable to give them name/checkbox text. The best I could come up with was a similar checkbox text for everything that was generated. Is there a way to name them? Below is the code I ca...

How to tell if (VB) code is running inside Visual Studio?

I'm using VB Express 2008. I know how to tell if code was built in debug more or release, but now I would like know how to tell if it is running in the Visual Studio IDE or not (so that I can add some debug MsgBox() and not worry about them showing if I ever accidentally ship a debug version). ...

How to embed version number & copyright into my DLL?

I have a VB Express 2008 class library and would like to embed a version number and some copyright/contact info. How do I do that? ...

dynamically add different strings into an array list base on a pattern/algorithm/formula

is there a way to dynamically add this whole adding process instead of the manually entering the values like a.Add("1 & 2"); and so on by the way, this only happens if i select 5 conditions -i am doing the adding base on the maximum condition i cater which is 5 the subsets that i show below must be in that pattern although its ok that ...

LINQ WITH VS 2008

Is the VS 2008 professeional Edition fully support with linq to sql Thank ...

How to make a COM DLL?

Just another of those things that I have never done before but which is probably simple ... when you know how I am using VB Express 2008 and need to create a very simple DLL. I already built and tested it and now I find that it has to be a COM DLL. How do I go about that? Edit: in reply to @Kman - I looked at http://msdn.microsof...

Visual Studio ::: Did you ever use Memory Window to debug?

Hi all: Did you ever use Memory Window to go about debugging? If yes, can you provide some scenarios? Thanks ...

Silverlight Debugging in Visaul Studio stops working when open a new window

I have an aspx page that hosts a silverlight application. Debugging works fine and breakpoints in the silverlight app are hit when I go to the page directly but when I have the page launch in a new window from its hosting ASP.NET application the breakpoints stop getting hit. Any ideas? ...

C# app throws access denied error

I have .net app in which there is function for Database backup and restore. When I installed this program using Setup & Deployment project I am unable to make back up from my app. It give me Operating System error 5(Access denied). I have installed this on Windows & ultimate OS on default location (C:\Program Files\My Company\My Software...

multiple asp.net membership providers

I have created two custome membership providers that I would like to add to my web.config. The first one would be the default that the asp.net application would use. The second would be called by a WCF service that I have in the same application. The providers in the membership section of my web.config looks like the following: <...

What version of Silverlight am I using?

I have a Silverlight application that I am maintaining. I am currently using Visual Studio 2008. I have the Microsoft Silverlight 3 SDK installed. I have Microsoft Silverlight 4 installed. When I run the application and right click on the window to pull up the about Silveright message box it tells my that I'm using 4 which is what I ...

HRESULT = '80004005' in Visual Studio 2008 Setup Project

When I try to build my setup project, I get the following error: "An error occurred while validating. HRESULT = '80004005'" (And Microsoft wins an award to clarity.) I Google to find that a small army of developers have had the same problem. Really the error should read: "Could not find a reference in one of your projects." Everyone...

visual studio copy paste bug

when i hit ctrl + c without selecting anything (it should copy that line) and make some changes in the code then paste to another section, however the copied code is no longer there. im using visual studio 2010 and 2008, they both have this bug. anyone else noticed this bug? ...

What is the best template to use in C# Visual Studio 2008 for a 2D game?

Is it WPF? WFA? A custom template? I currently use WFA, and it just doesn't seem anywhere near optimal. And no, I'm not asking for a referral to DirectX, or another language. Thanks. ...

Build Report API in Team Build 2005 from Visual Studio 2008

Our shop is set up with a Team Foundation 2005 server but all development work is done in Visual Studio 2008. What I would like to be able to do is write a program that examines the build history of a given Build Definition and extract out the test results to produce pretty graphs of the sort that Team Build really doesn't give. Howeve...

dynamically created controls disappears when click

the dynamic controls went missing right after i click it, why is this happening, and how do i fix it. protected void Page_Load(object sender, EventArgs e) { /*DropDownList1_SelectedIndexChanged(sender, e); Label1.Text += "<br/>huh?"; Label1.Text = MapPath("dawd");*/ } protected void DropDownList1_SelectedIndexChanged(object ...

OpenMp Fatal user error 1002

Hi, I'm using a basic omp parallel for, which works most of the time, but sometimes (with no difference in the input data) makes the program crash with the error: Fatal user error 1002 Not all work sharing construct executed by all threads. #pragma omp parallel for \ shared(szDetailedError, aCG) \ private(pCha...

Recommended Visual Studio 2008 plugins

I have been using Visual Studio 2008 for the past one and half year, only plugin I'm using is Ankh SVN. I heard that there are lots of interesting plugins out there, which help to accelerate and ease development. Please recommend some plugins. I'm using VS2008, C#, SQL Server 2005 for developing Web Applications. ...

I am getting Timeout expired Error while Migrating application to VS2005 to VS2008

Message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. ...

Efficient Declaration/Creation of variables/controls.

I'm working on cleaning up an app I'm almost finished with and I noticed something that made me curious as to why it's being done that way. While you can edit the .Designer.cs in your project for a form, there is a lot of autogenerated stuff in there, such as the creation of variables and controls. They have the Windows Form Designer g...