Owner: Dot NET facts URL:http://dotnetfacts.blogspot.com Join Date: Fri, 07 Mar 2008 12:35:37 -0600 Rating:0 Site Description: Programming blog focused on .NET Framework, Visual Studio IDE,
Compact Framework, C#, Visual Basic, Infragistics NetAdvange user controls, reviews,
benchmark tests and OOP tips and code optimizations. Site statistics:Click here
The Infragistics’ user controls library review 2008-03-07 10:25:48 All my late .NET projects had a mandatory, common requirement: the Infragistics NetAdvantage control library. I have been using it since the 6.1 version came out, over one year of development period, on six different .NET projects.
Considering this, I believe I have enough experience with this user control library to highlight all the goods and the beds that come out from it. Infragistics Read more:review
How to: Create new chart types with Infragistics Ultrachart 2008-03-12 12:25:37 The Infragistics NetAdvantage 7.3 release came out with a new event for the Ultrachart user control. The FillSceneGraph event was provided to help those who want to change the chart’s elements right before firing the Paint event. Using this new event we can create new chart types
that are not supported by Infragistics, by default.
I will show you how to create a chart that combines the
How to: Enable zooming on Infragistics composite charts 2008-03-10 14:59:11 To do this on a regular UltraChart chart layout is not a difficult thing but when we consider the composite charts it seems to be not supported. Well, this is not true. Actually we use the same properties to do it excepting that for the composite chart those properties are not shown by IntelliSense. You can find here a possible reason for this.
In my example I will consider a UltraChart in
How to: Optimize the strings’ comparison 2008-03-15 15:12:56 Due to my web research I found some useful tips about how to compare two strings
making full use of performance in .NET Framework.
Equals() vs ==
strA.Equals(strB) is a little bit faster than strA == strB, because the == operator has to handle an overload implementation. According to the class library design guidelines the == operator’s overload implementation is same as for Equals().
Both Read more:comparison
Workaround: Infragistics column chart with columns having same height 2008-03-15 09:50:03 As I told you here, the Infragistics NetAdvantage has pretty much bugs almost on every release. Considering the NetAdvantage 7.x releases, it is not possible to render column charts with all columns
having same heights.
Here is a workaround for this issue provided by Infragistics:
<!--
{\rtf1\ansi\ansicpg\lang1024\noproof1252\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\
How to: Optimize the memory usage with strings 2008-03-28 17:58:40 The System.String type is basically a sequence of Unicode characters. Some of the most important properties of the String type are:
It is immutable. Once a string is created it can not be modified. Updating the string’s value will end up in creating a new string object having the updated content and reclaiming the old string by the GC (Garbage Collector)
It is a reference type. Because of Read more:strings
Things you MUST dispose 2008-03-31 04:50:08 When the .NET Framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it's no longer referenced by any active code, at which point the memory it's using is reclamed by the Garbage Collector (GC). Before the GC deallocates the memory, the framework calls the object's Finalize() method, but developers are responsible for
GDI+ Windows rendering API 2008-04-07 13:49:21 Microsoft GDI+ is a part of Windows
XP/Server 2003 operating system that provides 2D vector-based graphics, imaging and typography. GDI+ is an improved version of the old GDI (Graphics Device Interface), which is part of previous Windows versions. The GDI+ programming model has been revised to make graphics programming easier and more flexible.
GDI+ vs GDI
Both are doing the same thing. Both
How to: Use strings in a secure manner with SecureString class 2008-04-09 09:30:03 The class
ic System.String type doesn’t provide enough security for storing sensitive data like passwords, credit card numbers or personal information. If a String object contains sensitive information, there is a risk the information could be revealed after it is used because your application cannot delete the data from computer memory. Starting with the .NET Framework 2.0 the SecureString class Read more:strings
GDI+ painting basics 2008-04-17 12:53:11 The core of GDI+ is the Graphics class which draws all the needed lines, curves, shapes, text and images. The Graphics class encapsulates a GDI+ drawing surface, which can be a window or print document. You paint on this drawing surface using a combination of the methods the Graphics class provides. If you want to read more about the GDI+ please read this article: GDI+ Windows rendering API
<!
How the Garbage Collector works - Part 2 2008-05-03 09:47:14 How the GarbageCollector
works - Part 1
Now let’s go deeper to understand how the Garbage Collector (GC) is actually collecting the dead objects and how this may affect the performance.
Collecting the Garbage
The GC is able to collect the garbage in two ways: full collections (searching the entire managed heap for dead objects) and partial collections (searching only a single generation
How the Garbage Collector works - Part 1 2008-05-03 09:45:53 How the GarbageCollector
works - Part 2
The Garbage Collector (GC) can be considered the heart of the .NET Framework. It manages the allocation and release of memory for any .NET application. In order to create good .NET applications, we must know how the Garbage Collector (GC) works.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
google_ad_slot = "8741549524";
Client coordinates and Screen coordinates 2008-05-19 01:46:27 The .NET Framework can provide the mouse coordinates using the client coordinates system or the screen coordinates system. In some mouse-based scenarios we need exactly to know which coordinates system is used in order to use the correct offset.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
google_ad_slot = "8741549524";
google_ad_width = 468;
google_ad Read more:Client
How to: Retrieve database schema information using ADO.NET 2008-05-20 06:48:18 Sometimes we need to know what is the internal structure of a database in addition to its data. This might turn very useful when the database structure is dynamic. This information
is called Database Metadata or Database Schema.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
google_ad_slot = "8741549524";
google_ad_width = 468;
google_ad_height = 60;
//-
Workaround: The SplitContainer may crash your VS2008 Designer 2008-05-22 01:59:29 If use the default Split Container to build a Windows Form or create a new user control, and set some properties of that Split Container at design time using Visual Studio 2008, you may end up with a broken form or user control. I got that error using the Visual Studio 2008 - Professional Edition.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
google_ad_slot = &qu Read more:crash
, Designer
How to: Take control over the Collection Editor's PropertyGrid 2008-05-28 12:17:44 The PropertyGrid control is a very useful tool if you want to update object attributes at run-time in a elegant way. The PropertyGrid provides some useful events to let you know what is going on. The problem occures for the collection properties when the Collection Editor
form is shown. This form also provides a PropertyGrid control to edit any item from the current collection but we don't have
How to: Set the PropertyGrid as Read-Only 2008-06-09 06:57:41 The default PropertyGrid control provided by the WinForms collection doesn’t support a read-only functionality. Setting the PropertyGrid as read-only might be useful if you want to allow your users to fully inspect a rich property object exposed by the PropertyGrid without the possibility to change something.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
googl
How to: Debug Windows Service in Visual Studio .NET 2008-09-22 05:06:48 Debugging a WindowsService
Application is a very unpleasant task because such application doesn’t run from within Visual
Studio .NET. A Windows Service Application runs in the Services Control Manager context.
<!--
google_ad_client = "pub-7646043077243506";
/* TXT_468x60 */
google_ad_slot = "8741549524";
google_ad_width = 468;
google_ad_height = 60;
//-->
In ord Read more:Debug
, Visual Studio
Connect to a MySQL 5.0 database with ADO.NET 2008-11-25 01:53:06 If you want to develop applications with the .NET Framework having a MySQL
database as a data source you may want to try the MySQL Connect
or/NET 5.2. The MySQL Connector/NET is a fully managed ADO.NET component wich provides specific implementation for all ADO.NET classes. You can download the MySQL Connector/NET 5.2 component from the MySQL web site.
<!--
google_ad_client = "pub-