Recent update: 2008-3-21
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" 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
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
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?
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 ...
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? ...
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.
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...
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?
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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#...
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 !). ...
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 ...
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 ...
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 ...
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...
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"?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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> ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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!
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 ...
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"]); ...
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 ...
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 ...
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 ...
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 ...