KnowDotNet NetRefactor

.NET Basics

This section contains articles relating to various aspects of programming in .NET.  


Articles  

VS2008 - Using LINQ to Query From an Array (C#) -
What's new in VS2008? Querying objects with LINQ adds real power to the developer's arsenal of tools for code production.     more...

VS2008 - Using LINQ to Query From an Array -
What's new in VS2008? Querying objects with LINQ adds real power to the developer's arsenal of tools for code production.     more...

GenerateDefaultValueInCode in VS2005 and VS2008 -
GenerateDefaultValueInCode in VS2005 and VS2008 Settings.Designer, when set to true can cause you to have undesirable results at run time.    more...

What's New In VS2008? -
Did you ever want to have a ToInteger Method on an object of Type String? Did you ever want to add ofther methods to the various types of System.Object? In VS2008, you now can do that with Extension Methods.     more...

Using String.Split Intelligently Instead of RegularExpressions -
Use the String.Split intelligently rather than a RegularExpression. RegeularExpressions are great, but sometimes it will take longer to create the proper Regex than it takes to use a simple String.Split operation.    more...

Easy Way to Indent XML in a TextBox -
What is an easy way to Indent XML in an application? I know there are editors for doing it, but is there a simple method for doing this in an application? Yes there is; see the code here.     more...

Passing A Delegate As a Parameter - VB.NET and C# -
Can I pass a Delegate as a parameter to another assembly? Yes; this article will show you how.    more...

Flickering While Resizing -
I have a very simple form containing a TabControl with 2 TabPages. The Dock property for TabControl is set to Fill. TabPage1 contains a TreeView with some nodes.How can I stop the Flickering While Resizing?    more...

Replacing VB.NET Functionality in C# -
How can I replace the Space() function, found in VB and VB.NET in C#?    more...

GridLayout in VS2005 - Where is It? -
Where is the GridLayout Property that was in ASP.NET Pages in VS2003? It has been moved out of the Page in VS2005 and can be found in the Tools Options Dialog.     more...


plus 153 more...

Code  

ListView Drag & Drop With Auto Scrolling in .NET (Upgraded) -
Need to have your ListView scroll while using Drag and Drop? This article shows the code. It's not complex, but the documentation is hard to locate in .NET.    more...

Print Contents of Grid or ListView -
I am constantly faced with the requirement to print the contents or selected columns of a DataGrid or ListView. This article presents a description and all of the code for a demo project to accomplish this.    more...

Updater Application Block - Writing a Wrapper DLL -
How do I write a wrapper DLL so that I can use it over and over without duplicating all of the self-updating code and use it in both VB.NET and C# Applications? In this article, I will show your the code (C#) for a DLL that wraps the Upadater Application Block.    more...

.NET Printing is Different, but much more Powerful and Flexible than in VB6 -
Why Migrate to .NET? Printing is completely different, but much more powerful and flexible than VB6.    more...

TextToStringBuilder -
Let this FREE tool build code for a StringBuilder based on your text input. Great for long message strings or SQL queries. Generates code in VB.NET or C#.NET.    more...

Use XML Files to Replace The Registry for GetSetting And SaveSetting VB Functions -
If your application has to save settings, you should not count on being able to write to the system Registry. Why not use an XML file to save your settings?    more...

Dealing with Colors in VB.NET -
The System.Drawing.Color enumeration in .NET provides a whole host of colors and is very easy to use. For instance, if I wanted to change the background color of a form, I could use the following:    more...

RichTextExplorer -
Download RichTextExplorer today and simultaneously edit the RTF and Text of a document. Executable and full source code are available.    more...

Writing Add-Ins for Visual Studio .NET
Writing Add-ins for Visual Studio .NET
by Les Smith
Apress Publishing