Select Page

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,...

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. Keyword Range bits > sbyte -128 to 127 8 > short -32768 to 32767 16 > uint 0 to 4,294,967,295 32 > ulong 0 to...