visual-studio

C# custom template to edit Visual Studio new project dialog box

Hi, I want to create a custom template so that once selected, it will gray out the Location input box in the New Project window. Does anyone know how to do this? Thanks much in advance ...

Visual Studio 2010 vs Visual Studio 2010 Express share solution file and entity model

Is it possible to open a solution saved by VS 2010 Professional in Visual Studio Express and vice versa? If so, will there be issues with the entity model (edmx)? I see the following statement here: Visual Studio Express Editions cannot connect to a server. They can only connect to a file instance of a database. http://msdn.microsoft...

Build turns partially transparent image pixels black

I'm very new to C# and I've run into a problem and haven't been able to solve it. I have a row of buttons that have .png images assigned to them. The images are in .png format to allow transparency, and smoothing the edges in GIMP leaves some semi-transparent pixels. I've set the Image List Toolbar (imglToolbar)'s properties to recogn...

How do I effectively store a connection string in machine.config only?

We are moving to an environment with multiple engines of SQL Server running on the same server (a test engine and a production engine). We also have separate test and production web servers, and would like for our asp.net applications to "magically" use the test database engine on the test web server and the production database engine o...

How to add an existing folder to a Visual Studio project?

I have a web application project made in Visual Studio 2008. Well, I added a jquery folder and added it to source control and other such things. I forgot to add it to the visual studio project though. How do I add the existing folder now? I've tried just creating a new folder and naming it jquery but it gave me a cryptic error "the dire...

How do you get the solution directory in C# (VS 2008) in code?

Hi, Got an annoying problem here. I've got an NHibernate/Forms application I'm working through SVN. I made some of my own controls, but when I drag and drop those (or view some form editors where I have already dragged and dropped) onto some of my other controls, Visual studio decides it needs to execute some of the code I wrote, includ...

Team Foundation Server 2010 Unmapping

Any idea how to unmap a project? Here is what I am trying to do, I changed the location of a source control, completely removed it from TFS source control.. but now it is showing up wanting to add it.. And the other issue I'm having is.. when I try to Map the new project, it is giving this error.. thing is, I've completely deleted th...

Windows demangling library

I'm looking for an open source library to do Windows executable symbol name demangling. Does such a thing exist or must I use the Microsoft libraries? ...

How can i learn Table Name in database an column name?

How can i learn table Name in database an how can i learn any Table's Column name? SELECT Col.COLUMN_NAME, Col.DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS AS Col LEFT OUTER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE AS Usg ON Col.TABLE_NAME = Usg.TABLE_NAME AND Col.COLUMN_NAME = Usg.COLUMN_NAME LEFT OUTER JOIN INFORM...

Compiler doesn't find methods from base class

I am having a problem with my virtual methods in a derived class. Here are my (simplified) C++ classes. class Base virtual method accept( MyVisitor1* v ) { /*implementation is here*/ }; virtual method accept( MyVisitor2* v ) { /*implementation is here*/ }; virtual method accept( MyVisitor3* v ) { /*implementation is here*/ }; ...

How can i convert my string with my common language to English?

i have some excell data. also excel column i created programmaticaly in sql tablr my excel column on the other hand; some column's name is "mydetail" if converting to to upper MYDETAİL. i must this ToUpper() event : MYDETAIL not MYDETAİL ...

Debugging a Visual Studio 2010 extension or addin, always gives me LoaderLock...

Title says it all. I'm trying to write an extension for VS2010, but I get this every time: Hit F5 to start debugging A new instance of visual studio starts up I can see a bunch of DLLs loading in the debug host while the new instance is starting It then fails with a "LoaderLock". When I continue after that, the new instance is fully...

How to access Excel Max Column value?

i try to create table from excel rows. however; excel columns : column1 has max 200 character row column2 has max 300 character row column3 has max 500 character row So i need to create sql create MyTable column3 nvarchar(500) according to Excel Max Character. ...

No compile errors when reference added, but errors seen upon build

A solution was just converted from VS 2008 to VS 2010. My VS 2010 build is failing with the popular "The type or namespace X could not be found". When I go to the project and go to Add References and add the appropriate project dll, the class name appears in blue text as if .NET found the correct class. However, when I go to the Build...

How can i sort DESC and ASC in list generic?

How can I sort DESC and ASC in a generic list? With LINQ and without LINQ ? I'm using vs 2008. class Program { static void Main(string[] args) { List<int> li = new List<int>(); li.Add(456); li.Add(123); li.Add(12345667); li.Add(0); li.Add(1); ...

How can I customize the cpu in visual stadio

I need to test my program on a specific environment. I want to know how I can customize the cpu or ram usage, or see what will happen when I run my program to the hardware. I need this information: memory usage cpu usage ...

Visual Studio 2008 Intellisense for Events auto insert

Does anyone know the attributes or xml comments required to get the "new EventHandler(blah); (Press TAB to insert)" ability when you += an event? Here are the two methods I've tried. public EventHandler AnEvent; public delegate void CustomEventHandler(object o, System.EventArgs e); public CustomEventHandler AnotherEvent; Neither see...

How to resolve Resharper's "unused property" warning on properties solely for Display/Value Members?

I have defined two properties "Name" and "ID" for an object which I use for the DisplayMember and ValueMember of a ComboBox with a BindingList datasource. I recently installed Resharper to evaluate it. Resharper is giving me warnings on the object that the two properties are unused. Sample code: BindingList<ClassSample> SampleList = n...

Where is the VB.Net debugger "Make Object ID" function?

When using the visual studio 2008 debugger with c# i can right-click on a variable and choose "Make Object ID" which allows me to watch that object (via it's ID) regardless of whether it is in the current stack frame or not. When the debugger is in VB code, (doesnt matter if it's run from a c# unit test or a vb unit test) That option is...

complus Exception code -532462766

Using visual studio 2010, entity framework 4.0, ADO.NET POCO Entity Generator On the code lines: MecDbEnt.Domains.AddObject(subject); MecDbEnt.SaveChanges(); (on this line) the application throws follow exception: complus exception code -532462766 Does anyone know how to solve an error like this? Thx! ...