Sandor Korozsi’s linkblog

  .NET Framework, C#, Smartphone, Pocket PC, Managed DirectX, Game development
Development, Link, ASP.NET, WinFormsNovember 29, 2006 12:58

"The Mono Migration Analyzer (MoMA) tool helps you identify issues you may have when porting your .Net application to Mono. It helps pinpoint platform specific calls (P/Invoke) and areas that are not yet supported by the Mono project."

MoMA - Mono

Development, WinFormsAugust 30, 2006 9:28

Yesterday I found a "strange" behavior in .NET WinForm project I’m developing. When the application started the main window appeared in 4 seconds. When I pressed refresh button the same method run in 24 seconds! First when I didn’t notice this fact, I thought the problem is about the SQL query. I added an "order by" statement two days ago to the original query. When I’ve tried the query in SQLite Administrator this query only took 0,324 miliseconds to run.

In fact I used a function which makes possible to change the order of the column in the listview. When the application starts the ListView is empty. Then I call a function which clears the Column collection of the Listview, but doesn’t clear the items of the Listview. ListViewItems was cleared after the columns were added. It was the problem! When the items was not cleared it took a lot of time (24 sec) to add these 10 columns to the Columns collection.

Conclusion: Always call ListView.Clear() method instead of ListView.Columns.Clear() on a non empty ListView before manipulating the columns of this control. I didn’t realized that slowdown before because I didn’t display so much data in a ListView (>4000 records). I thing RealizeAllSubItems() method call makes it so slow which is invoked in InsertColumn(int index, ColumnHeader ch, bool refreshSubItems).

Development, Component, WinFormsAugust 24, 2006 14:01

"Ascend.Net" Windows Forms Controls

"The Ascend.NET controls are a collection of Windows Forms controls written in C# targeting Visual Studio 2005 and .NET 2.0.

The intent is to provide controls that are flexible but easy to use and will hold up well under heavy usage.

Version 1 has the following controls:

GradientLine GradientLine Images
GradientPanel GradientPanel Images
GradientCaption GradientCaption Images
GradientSplitBar GradientSplitBar Images
GradientNavigationButton GradientNavigationButton Images
GradientAnimation GradientAnimation Images
NavigationPane NavigationPane Images
"

Development, Component, WinFormsAugust 20, 2006 8:50

SourceGrid - Open Source Grid Control

"SourceGrid is a Windows Forms control written entirely in C#, my goal is to create a simple but flexible grid to use in all of the cases in which it is necessary to visualize or to change a series of data in a table format. There are a lot of controls of this type available, but often are expensive, difficult to be customize or not compatible with. NET. The Microsoft DataGrid for me is too DataSet orientated and therefore results often complicated to use in the cases in which the source data isn’t a DataSet and often is not enough customizable."

Development, Component, Charting, ASP.NET, WinFormsAugust 7, 2006 15:49

A flexible charting library for .NET - The Code Project - C# Programming

"ZedGraph is a class library, Windows Forms UserControl, and ASP web-accessible control for creating 2D line, bar, and pie graphs of arbitrary datasets. The classes provide a high degree of flexibility - almost every aspect of the graph can be user-modified. At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted.

ZedGraph is maintained as an open-source development project on SourceForge. The site includes a project Wiki, documentation, interim (CVS) updates, and all release versions.

A set of sample graphs is also available on the Wiki, complete with source code (many of the samples include C# and VB code).

As of version 5.0, ZedGraph now requires .NET 2.0. However, you can download version 4.3.5 from the SourceForge project site which works with .NET 1.1."