Posts tagged ‘C Sharp (C#)’

How to Tab Through Controls on a Form With Alternative Keys Using C# – Update

Three Ways to Reverse a String in C#

OK, conceptually, it’s quite easy. A couple of my friends got asked this question when interviewing. Here are what my solutions are: Continue reading ‘Three Ways to Reverse a String in C#’ »

Test Your Regular Expressions with RegexpBench

Download RegExpBench.zip I created this little utility a while ago. It is a work bench for creating/validating regular expressions. Continue reading ‘Test Your Regular Expressions with RegexpBench’ »

How to Tab Through Controls on a Form With Alternative Keys Using C#

Download AltTab.zip We have taken it for granted that TAB and SHIFT + TAB move the focus from one control to the next depending on the TAB order, and rarely wonder how we would implement such functionalities ourselves. Continue reading ‘How to Tab Through Controls on a Form With Alternative Keys Using C#’ »

Color Picker Updated

Download ColorPicker.zip

I put this ColorPicker up for download about a year ago. Recently, I have updated it (some minor tweaks), and here it is again. Continue reading ‘Color Picker Updated’ »

A Better Datagrid Combobox Control

Download DataGridComboBoxTest.zip I recently needed a datagrid combobox for a project that I was working on. Continue reading ‘A Better Datagrid Combobox Control’ »

Performance Comparison: Rectangular Array vs. Jagged Array (Update)

As I mentioned earlier (see Performance Comparison: Rectangular Array vs. Jagged Array) I ran the same set of tests in .Net framework 2.0 (Beta 2) and the results are still pretty similar to that in 1.0. I would suspect that the test results be similar in the final product of .Net 2.0. Continue reading ‘Performance Comparison: Rectangular Array vs. Jagged Array (Update)’ »

A Transparent GIF Conversion Utility in C#

Download GIFTran.zip

We often need images with transparent background when creating websites. Continue reading ‘A Transparent GIF Conversion Utility in C#’ »

A High Resolution Timing Utility in C#

Download PerformanceCounter.zip Assembly level developers have long enjoyed the use of RDTSC (read time stamp counter) instruction to achieve high resolution (1/clock speed (HZ)). Continue reading ‘A High Resolution Timing Utility in C#’ »

Performance Comparison: Rectangular Array vs. Jagged Array

Jagged arrays (e.g. a[i][j]) are named such so because it is an array of array. Continue reading ‘Performance Comparison: Rectangular Array vs. Jagged Array’ »

XML Serialization Surprise

I have been using XML serialization in .Net 1.1 for quite some time and never ran into any problems before until quite recently. Continue reading ‘XML Serialization Surprise’ »

Building an LCD Control

Download LCDControl.zip I needed an LCD control for a program I wrote, but after searching the internet, to my surprise, I couldn’t find one that I fits my need. So I decided to write one for myself. Continue reading ‘Building an LCD Control’ »

What is My IP?

Download : MyIP.zip Recently a friend of mine asked me how he could determine his external IP address. Continue reading ‘What is My IP?’ »