visual-studio-2008

How to return DropDownList selections dynamically in ASP.NET?

This is probably a simple question but I am developing a web app in C# with DropDownList. Currently it is working for just one DropDownList. But now that I modified the code so that number of DropDownLists that should appear is dynamic, it gives me error; "The name 'ddl' does not exist in the current context." The reason for th...

How to disable crazy Javascript/HTML formatting in Visual Studio 2008?

The formatting of HTML and Javascript is just crazy. It actively works against you. Does anybody know how to turn this off completely? (I Do not speak about the HTML designer, I speak about what happens when you press ctrl-k,d in HTML view or when you press ; in a javascript block). ...

My exe run only dll's in exe file together. i need run exe from file how can i?

i created imported DLL in references. My plugin need these DLL but they are in common or plugin file if i click reference add dll they import form plugins file . they must be only in only plugins or common not two place. Look picture below: if i click add refrence ClearCanvas's DLL and PluginTest Dll must be only plugins file !!! ...

visual studio resharper disable formatting

Is there a simple way to disable automatic formatting for a specific file in Visual Studio 2008 using ReSharper? ...

How to Compute a Database Column in .NET

I have a Database named CarsType.accdb there are four fields in the data base Item_Name, Item_Num, Item_Qty, Item_Cost. I am able to get the database to display my data in VisualBasic but I am not sure how to get the total cost to appear in my label (lblTotalCost). I prefer doing it in VB versus writing in my access program. All I a...

string permutations with multiple string words

I would like to generate permutations of string words that are inputted from a file. I know the count and was wondering if there is an easy way to do this using an arraylist. ...

argv Memory Allocation

I was wondering if someone could tell me what I am doing wrong that I get this Unhandled Exception error message: 0xC0000005: Access violation reading location 0x0000000c. with a green pointer pointing at my first Prolog code (fid_t): Here is my header file: class UserTaskProlog { public: UserTaskProlog( ArRobot* r );...

XCode vs VS2008 or how to work with a static library project on XCode

Hello. I've working with Visual Studio for a long time and now I'm working with XCode. On Visual Studio I can work with more than one project at the same time adding them to a solution (imagine a solutin with a windows application project and a library project). Now I have XCode and two projects: an iPhone application and a static lib...

Checked list box

i want to do some actions when all items in checked list box are unchecked. There is only event ItemCheck but the check state is not updated until after the ItemCheck event occurs. I have a button and i want to do its enabled false when all items unchecked in checked list box System::Void frmMain::clbInstPrgs_ItemCheck(System::Object^ ...

Convert Test Projects in VS 2008 to 2010

We are currently building the framework for developing a C# .net application using visual studio 2008. We are considering our options wrt. the unit test code for this project. One option is the Test Project in Visual studio. I need to clarify if these test projects will convert to 2010 correctly or any difficulties that may arise. ...

Visual Studio move project to a different folder

How do I move a project to a different folder in Visual Studio? I am used to this structure in my projects. -- app ---- Project.Something ---- Project.SomethingElse I want to rename the whole namespace SomethingElse to SomethingNew, what's the best way to do that (without manually going into .sln file)? ...

Optional parameters in Visual Studio 2008 Crystal Reports

I am developing a Crystal Report in Visual Studio 2008. I am trying to implement optional parameters so that a user does not have to specify a value or range for a particular field. Essentially, this means there is no filtering done on that field if the user wishes. However, I can't seem to figure out how to do this. Does anyone have a...

Visual Studio - Attach Source Code to Reference

My C# project references a third-party DLL for which I have the source code. Can I somehow tell Visual Studio the location of that source code, so that, for example, when I press F12 to open the definition of a method in the DLL, it will open up the source code, instead of opening up the "Class [from metadata]" stub code? ...

How do you modify the SOAP header for a .NET web service proxy generated by VS2008?

Is there a way to modify the header (say to insert a security / authentication element) for Service References that are generated by Visual Studio 2008? How would you do it? ...

Any way to install Visual Studio 2008 hotfixes automatically?

There are several hot fixes for VS 2008 sp1, but it's a mess to install them all manually one by one. Is there some kind of Visual Studio Updater, which installs all the necessary hot fixes automatically? ...

Program ends abruptly even in debugger - how did that happen?

I am trying to debug a program that unexpectedly shuts down. When I say "shuts down, I mean one moment I am seeing all the windows being displayed, each of which is showing all the right data,then suddenly all the windows disappear. The is no messagebox reporting anything wrong. So I tried running the program in the debugger hoping that ...

How can a wix custom action dll call be made to use the debug runtime via a merge module?

I'm trying to create a debug build with a corresponding debug installer for our product. I'm new to Wix so please forgive any naivety contained herein. The debug Dlls in my project are dependent on both the VS2008 and the VS2008SP1 debug runtimes. I've created a merge module feature in wix to bundle those runtimes with my installer. ...

Visual Studio / Visual Source Safe / Integrated Security / IIS 7

Using Visual Source Safe with IIS integration (the working dir is the IIS site) Visual Studio, pointed to the IIS site would load up the Web project. It would be under VSS control (have to check out files, etc). Recently, we had to switch to Integrated Security for our database connections from the web app. This means changing the i...

Is it possbile to export IDE color settings from VS2008 into VS2010?

Question explained on title ...

Can vs.net create public properties from private members using its Refactoring?

I have like 10 private members in my class, and I was hoping vs.net could create public properties from them but can't seem to find that option in VS.NET 2008. Is there a feature for this? ...