Skip to content

MikeBevers.be

Putting it out there…

Archive

Tag: .NET 2.0

Background

When you’re creating a Mobile application, the UI is very important. Your controls cannot be too small, shortcuts cannot be used, and lots of other little things. I don’t like repetition, but I do like UserControls! So let’s bring in the “TSGrid”.

TSGridSource code: Touch Screen DataGridView Control

continue reading…

Background

Currently, I’m developing an application for a mobile device that runs on Windows XP Embedded. One of the requirements is that the application has to run in full screen mode. Also, a regular user should not be able to exit the application.

I was able to install the .NET 2.0 Framework on Windows XPe, so the front-end will be a WinForms 2.0 application.

continue reading…

Reading a file into a Byte[] in .NET 1.1

FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
long numBytes = new FileInfo(filePath).Length;
byte[] buff = br.ReadBytes((int)numBytes);
br.Close();
fs.Close();

Don’t forget to put the code in a try/catch/finally block. In finally block, call the Close() methods.

continue reading…