Select Page

The Bitmatic Blog

A very technical blog with News and Articles about life in a nerdy world

Dinonaut WordPress Hosting

Dinonaut is online! Bitmatic has opened a new webhosting, Wordpress and Domain Name Register website called dinonaut. It's located at www.dinonaut.com and is online and waiting for orders right now. To stand out a bit we want to focus on wordpress hosting on dinonaut,...

The new EKHO has been released

The new EKHO is finally here This week Aarhus University Hospital got their 2 brand new EKHO installations. The install ran smoothly and without any problems. The existing patients from the old system were imported automatically and without errors. Everything went...

First batch of the EKHO 2 hardware is getting close

EKHO 2 release is getting closer! EKHO 2 is on a completely new hardware-platform that supports USB, and windows 7/8. We received the first 15 units of this new EKHO 2 hardware from the electronics manufacturer a few days ago. Now they need to have the leaded...

Redirecting MouseWheel events to another control

Redirecting events from one control to another is quite easy. I recently needed it for an application that uses a number of ComboBoxes to filter data in a DataGridView. It was very confusing to the user when she selected an item in the ComboBox and subsequently tried...

Fixing the Logitech Setpoint – ActiveSync problems

Logitech's SetPoint software is causing severe problems for people using ActiveSync to sync with their mobile devices. The incompatibility between SetPoint and ActiveSync causes programs running on the affected computer to loose focus for about half a second every...

Fixing a slow scrolling DataGridView

Whenever your C#/.NET DataGridView reaches a certain size, it tends to get really slow to scroll. Depending on the speed of your computer this may be more or less noticeable. In an application i did for a client this became a real problem due to a combination of lots...

Understanding thread priorities in C#

Thread priorities in the .NET framework are more complex than many developers think. Setting Thread priority is more than just adjusting the ThreadPriority of a Thread. You also have to take into account the priority of the process to which the threads belong. The...

Voluntary fall through in C# switch statements

I used to use voluntary fall through a lot in switch statements in C and C++. In C# it is no longer as easy to do as before, since all cases of a C# switch are required to end with either break or goto. You can still do voluntary fall through. You just need to be very...

Single instance applications in Windows CE

I programmed a Windows CE application last month that had as a requirement that only one instance could run at the same time. Had it been Windows Mobile, this had been handled by the OS, but on Windows CE you have to take care of this yourself. I was a bit surprised...

Using embedded resource files in visual studio 2008

Why embed files ? Many of my projects use a lot of secondary files. It can be images, icons, xml-files, text, sound, whatever.... These files pose a couple of problems for me: They clutter the program folder. The user may accidentally delete or change them. They...

Profiling for the Compact Framework

Just wanted to share with everyone that there is a .NET Profiler that works with the Compact Framework. It is made by a Danish company called Eqatec and best of all; It is completely free. A long search has ended I have been looking for something like this for several...

Downloading files from the internet with C#

With the .NET framework it has become very easy to programmatically download content from the internet. Using the WebClient class from the System.Net downloading a file from the net becomes as easy as specifying the address to download. There are several different...

Implementing a scrolling RichTextBox

It is often necessary to make a .NET RichTextBox scroll to the top or the bottom. Unfotunately there is no direct method of doing this in the class itself. One possible solution involves using the ScrollToCaret() function of the control. This method is outlined in my...

Scrolling a C# RichTextbox when adding text

The need for an autoscroll property... Tons of applications are using the .NET RichTextBox for outputting status information. You have a RichTextBox that you just keep on adding text to. This is all very simple, but when the box is completely filled with text, further...

Printing a HTML color chart with php

As a web-designer you have probably seen the tables of web-safe colors a million times on different sites. They are all over the web, and a google search for the term "web-safe color chart" yields about 2.5 million results. But how are they actually made ? An easy...

Integer types and their ranges

There are 8 basic integer types in C#. The names and ranges af these types are an industry standard, so they should also be valid in most other languages.
This article describes the range of values these types can hold, as well as a few usefull tricks.