That's half of the problem - the .BorderStyle property is a hard coded value (it is an enum that has values between 0 and 5), and the pixel size of the borders for each of those styles changes based on theme settings etc (using default Windows settings, they will be smaller on Windows XP than on Vista/7).