Visual C# IDE - Visual C#
Recent update: 2008-3-21

How can I make the IDE create correct code?

2743 byte By KevinShan at 2008-3-7
I implement a component, but I can't get it's paraent (a control which contain the component).So I want to get the paraent from constructor's parameter.But the IDE can't create corrent code for my new constructor.How can I make the IDE create correct code?I want to let the IDE automatic ...

The IDE often automatically changes the file subtype from "Form" to "Code" i

276 byte By WilfredTang at 2008-3-6
The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file, which renders the forms unviewable in design view until that change is undone. Is there any way to prevent the IDE from doing this automatically? Thanks, Wilfred

Make a file 'DependentUpon' via the IDE

162 byte By kk302999 at 2008-3-5
Easy question, I can modify a C# project using notepad to make a file DependentUpon another file, but is there a way to do this in the IDE? Thanks

Multifile Assemblies?

168 byte By Dpowers at 2008-3-3
How do i add a static member using the class view...this static method should be named Add() that returns an int value and accepts two int parameters first and second?

How can I cover the menu item's shortcut?

515 byte By TomChen at 2008-3-1
Supposed I have a form with KeyPreview=true and a menu item whose shortcut is CTRL+C. Add a Textbox on the form. When I select some text in the Textbox and press CTRL+C, the selected text just can not be copied because system just call the menu item's OnClick event handler.And then how can I ...

name for button does not change in click event

892 byte By TienTran at 2008-2-28
I have 2 buttons name btnHonda and btnToyota, but the click event clicks show:private void button1_Click(object sender, EventArgs e) { } private void btnToyota_Click(object sender, EventArgs e) { }button1_Click should be btnHonda_click .....is this a bug with Visual C# 2005? ...

Build Web Comments Page

201 byte By xgbnow at 2008-2-27
Does anyone know what happen to the "Build Web Comments Page" function that used to be under the Tools menu in VS 2003? It does not appear to be an option in VS 2005? Thanks for the help in advance.

I want to see System.Diagnostics.Debug output in DebugView even when debugging i

1048 byte By guest at 2008-2-27
First, the DebugView program can be downloaded from http://technet.microsoft.com/en-us/sysinternals/bb896647.aspxThis is the tool of choice for viewing output from System.Diagnostics.Debug.Write("message"); If you build a program that has these write calls in debug mode, and then run it di...

Line length

234 byte By knallbunt at 2008-2-26
Hi, I can't find the option to set the maximum line length and display the print margin. I would also like to know if the auto-formatter automatically reorganizes the code so it doesn't exceed the line length? Can someone help?

Missing editor (I think !) for solution properties

722 byte By TimFells at 2008-2-25
Hi ! I am new to C# (and programming generally) but I enjoyed working with C# Express 2005 Beta 1, and made some dlls for some software I already have. This required using the properties interface to build and debug.I recently installed Beta 2. The compiler works fine, but when I click the ...

Interface code completion using C# vs.2003. . .

451 byte By BlairStark at 2008-2-24
sometimes when I inherit an interface I get the tool tip asking me to hit tab to implement. But other times I dont. Sometimes when I dont get the tool tip I erase the inherited interface and replace and I get the tool tip. the behavior is erratic and makes no sense. Any Ideas?is there a ...

Snippet behavior in C# Express

850 byte By LTR at 2008-2-23
I am new to C# Express and can't seem to get the snippets to work in files that are part of a project. If I open a .cs file by itself, that is, not as part of a project, then the snippets work fine. However, if I open the same file as part of a project, then the snippets won't work.Let's say ...

stop build not available?

228 byte By thomaswoelfer at 2008-2-22
is it just me, or is the 'stop build' button not enabled for cs project builds? incase it is - does anybody know if this is supposed to stay that way in the final? WM_THX thomas woelfer http://www.die.de/blog

Provide strings to localize in a text file

641 byte By NicolasGallerand at 2008-2-22
I am actualy testing C# in VS2005 and i compare fonctionalities with C++ that i used in VC2003. I found that in a C# project, there is no property pages for files like in a C++ project. I used the property page in C++ project to perform custom build : compile a text file to resource using ...

Visual C# Express Edition Beta 2 and SQL Server Express Beta 2

621 byte By Marianeel at 2008-2-21
I tried to connect the SQL server express from C# Express beta 2 and got some error.In the "Add Connection" Dialog the options I gave are:Data source: SQL server DatabaseDatabase file name: C:\Program Files\Microsoft Sql Server\MSSQL.1\MSSQL\Data\tempdb.mdf Is it right? else What to give ...

ConfigurationManager.AppSettings["KEYNAME"] is Null

450 byte By RyanKelley at 2008-2-20
I have tried every thread that I could find on search and have found no solutions for this yet.What I have is a very simple console application that is testing a BatchQueue from the CSLA Framework.When i make calls to ...

IntelliSense features : C++ vs C#

686 byte By NicolasGallerand at 2008-2-19
There is a lot of features available in C# text editor that C++ editor doesn't provide. Just have a look in the menu Tools/Options/Text editor for C# and C++ ... Many features are not language dependant : all advanced formatting option, generate XML documentation comment for /// There's also ...

Working with DataBase

485 byte By Wasim at 2008-2-18
Hi,I'm new in using C# and VS.Net.I created a new data connection in the VS. wizard, and it added the dataset,and the data Adapter.I added DataGrid control to the form, and set the databinding properety to the dataset.My question: When I made changes in the DataGrid control at run time, There ...

build / debug functionality missing?

975 byte By thomaswoelfer at 2008-2-17
hi.in vs2003, it was possible to have a build configuration where _no_ project was selected. that way, one could simply build a single project inside the solution using the build command.when the solution was run, however, the ide would still fetch all current versions of all assemblies and ...

100% cpu load ?

522 byte By thomaswoelfer at 2008-2-16
hi.i see this on several machines: while simply editing a source file, cpu load goes up to 100% and stays there. the ide gets extremely unresponsive. load won't go down, even after we waited for 30 minutes. the only way to get working again is a) kill the ideb) _and_ remove the ncb ...

Ugly C# brace matching

150 byte By theumpteenthbrian at 2008-2-15
Why are there different styles of brace matching for C# and C++? Personally I prefer the C++ style and would like the option to use the same in C#...

compile fast, build _sloooow_

527 byte By thomaswoelfer at 2008-2-15
when i compile one of the projects in my solution, the 'compile' time is very short: the 'compile complete' message appears almost emmediately. (this is with the public beta of vs2005)however, afterwards, the ide will begin to do things on the hard drive for up to 2 minutes (each time !). ...

Code View, "Types" dropdown only contains "Form1". How do I get controls and

619 byte By Haashole at 2008-2-15
I'm looking at the Code View of my form - Form1.cs. At the top, the "Types" dropdown contains only <project name>.Form1, and the "Members" dropdown lists the controls on the form, grayed out with a blue icon next to them. The form has a DataGridView control on it. I would like to see ...

"Show All Files" in Solution Explorer does not appear for a web project

447 byte By BartCoppens at 2008-2-15
Hi,I wanted to view the ...designer.aspx.cs- and ...designer.ascx.cs-files, and was told I could find them by clicking the "Show All Files"-button in the Solution Explorer. Unfortunately, this button disappears when I select a web site project. (I am able to expand the aspx- and ascx-files, but ...

IDE taking forever to get in and out of debug mode

707 byte By Haashole at 2008-2-15
I have a pretty small app written in C#. At first - when I was building the form, IDE performance getting in and out of debug mode was fine - about the same as with VS2003. But now - without adding too much additional code, the IDE is acting really sluggish. I measured the time to start the ...

Using C# Express!

151 byte By serghio at 2008-2-14
Hi! I'm using C# Express, I created Console Application. I wantn't run my program in Quick Console, I want run my program in the console window...

Help with commands in C# Express!

244 byte By serghio at 2008-2-14
Hi, I installed VC# Express 2005. Now I have problem, I want any command as csc.exe, ilasm.exe, and I always have go to at "C:\Windows\Microsft.NET\Framework\2.0...". How I can for execute its commands from my directory as "C:\miCarpeta"?

Visual Studio 2005 and .NET 1.1 compliance

788 byte By tommazzo at 2008-2-13
Hi! I've now been using VS 2005 Beta 2 for my major C# project Virtual Photo Organizer for quite some time now and I am, apart from a few unexpected crashes in debug mode, pretty satisfied with it. There is however one major problem: I can't release any assemblies that require the .NET 2.0 ...

Visual C# express edition help

380 byte By Wasim at 2008-2-13
Hi,I downloaded Visual C# express edition. I can get only Help for some things.All the time I typed F1 to get help for certain thing, I get: Information not found.It seems that the help files arn't complete, eventhough I installed the nvironment perfecly.How can download the complete help, to ...

Can't get 100% code coverage

1810 byte By NewDawn at 2008-2-12
We're attempting to achieve 100% code coverage for a project, and we're having a hard time. On one particular class, it looks like all code is being covered, but our code coverage report says 12.5% is not being covered. I looked at the code, and one line is showing as partially covered, and I ...

HELP: Suddenly getting an exception in the Design View with StatusStrip (C# IDE)

1893 byte By mbryan822 at 2008-2-11
I am using the C# 2005 Express Edition on Windows XP Media Edition.Earlier today as I was going through some tutorials and everything was working correctly. Then all of a sudden, all of my projects that contain a StatusStrip in one or more forms started throwing an exception within the IDE!I ...

Object reference not set to an instance of an object

431 byte By samForASP at 2008-2-10
I m using windows up home edition and I just installed VWD 2005 Express beta edition I have a problem every time I try to create Cs (c sharp file ) it give me an error saying :Object reference not set to an instance of an object .thanks for help Sam ...

Is there any way to flag a block of code so it isn't reformatted by "Format Document"

1304 byte By ehartwell at 2008-2-10
I love the VS2005 autoformatter, and I use "Edit / Advanced / Format Document" and "Format Selection" all the time. Sometimes, though, the code is much easier to read if you break the rules and put everything on one line with multiple spaces or tabs. Example:Property1 { get { return ...

How to: Specify a Tracepoint Action

144 byte By joe at 2008-2-9
Hi all! I'd like to know How to Specify a Tracepoint Action. If anyone can help me i will quite thankfull have a nice day joe

Visual Studio 2005 Team Suite && Visual C# 2005 Express...

366 byte By LeRoi at 2008-2-8
I allready have Visual C# 2005 Express Beta 2 with the latest CTP. I also just received the Visual Studio 2005 Team Suite Beta 2 CD in the mail today, and was wondering if I could install this side-by-side with Visual C# 2005 Express Beta 2?If so, could I do this without having to un-install ...

Enterprise Templates

3752 byte By ArthurKnight at 2008-2-8
Good Day. I'm having some problems with my policy file. I want to include a c# class in a project under a Tier of my template. I want to VS inheritate the class when I add a item to the project. This is my element in my .TDL file : <ELEMENT> <ID>View</ID> <IDENTIFIERS> ...

How to dynamic load ASP.NET User Controls in Visual Studio 2005

2637 byte By jzl at 2008-2-7
Did anybody know how to dynamic load ASP.NET User Controls in Visual Studio 2005 if I put the User Controls in the App_Controls subfolder?Here is my test code: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using ...

White cursor on White Backgroud

309 byte By scotcurry at 2008-2-7
I have a crazy question. I have installed the VS 2005 Beta 2 on VMWare 5. I love all of the new changes, but I am having a problem. My I-Beam cursor in the editor is white on a white backgroud and I tell where it is.Is there a setting I should change to make it another color.Thanks in ...

Editing project references in visual studio 2005 project files

1171 byte By Milow at 2008-2-7
Currently, if you add a reference to a project that is outside the folder structure of the current solution, but on the same drive, you will get a relative path in the HintPath of the .csproj file. The only problem we have with this, is that the reference will be to a DLLat an exact location, ...

Updating Intellisense

511 byte By LukeMouthbreather at 2008-2-7
I need to be able to add things to the intellisense. I am working on adding things to the XSL/XML intellisense, but i need to be able to parse the XML/XSL file i am working with and add things to the available dropdown (to make it easier on me and everyone else in the group). Are there any ...

getting data with store procedure

999 byte By HrvojeVoda at 2008-2-6
Where to put a result to get byte array ?A variable that I get from store procedure is a blog.I use this code but I have to put a result into byte array, because it is a blog. SqlConnection conn = null; byte[] Profile = null; conn = new SqlConnection(sConnString); conn.Open() ; SqlCommand ...

Thanks

331 byte By mcfs at 2008-2-6
Hi, I want to run an EXE with a set of parameters. How can do it using Tools.Shell method. I tried using it but cannot compile. Do u have to reference some DLL? I also went to menu option "Tools"->"External Tools" but do not know what to do. Any help would be grately appreciated! Thanks ...

Format source code - Blank lines

675 byte By AlexBibiano at 2008-2-5
I'm wonder if there isn't an option on the code formatter to delete blank lines from my source code.I like the code formatter options, but I'm missing this feature.In Eclipse IDE for example, you can define how many blank lines do you want after a class, member, variable, method ... and ...

IDE does not repsond after a successful build

184 byte By LeiJiang at 2008-2-5
After the "build success" text appear in status bar, the IDE could not respond to any mouse or keyboard input for a long time. What is it doing? How to eliminate this period? Thanks!

How to run an EXE with parameters using Tools.Shell method?

331 byte By mcfs at 2008-2-4
Hi, I want to run an EXE with a set of parameters. How can do it using Tools.Shell method. I tried using it but cannot compile. Do u have to reference some DLL? I also went to menu option "Tools"->"External Tools" but do not know what to do. Any help would be grately appreciated! Thanks ...

dataset table row into an arraylist

396 byte By Hrcko at 2008-2-4
How to put a list of rows from dataset table into an array ?I tried with this code but it doesn't help. ArrayList arrayList = new ArrayList();foreach (DataRow dr in db.dataSetUsers.Tables["Functions"].Rows) { arrayList.Add (dr["Name"]); ...

smart tab indenting and multiline statements

1093 byte By davenitup at 2008-2-4
Our team is struggling with smart tab indenting. Some of us like it and others don't, which causes problems when sharing code. The problem is especially magnified for multiline statements. We have some developers that use laptops and break up statements (like a method call with a number of ...

Where is Object Test Bench in Beta2 (VSTS)?

512 byte By SaurabhNandu at 2008-2-4
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the ...

C# IDE bug - controls don't respond to mouse click

671 byte By SpurryMoses at 2008-2-3
Maybe there's a better place to report a bug, although I'm not an official beta tester.Something has happened to me a lot lately in the Visual C# IDE.While designing a form, after closing the TableLayoutPanel dialog (or some other event, I'm not quite certain), nothing in the form responds ...

Visual C# Look and Feel nice in XP, ordinary in 2000, why?

1324 byte By SpurryMoses at 2008-2-3
Hi,I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near ...