EdA
EdA

Reputation: 37

how to set form border thickness

I am writing an app using VB.net in VB2013. The Sizeable border is too thick in when displayed on PC's with later versions of Windows7, Windows 8(.1).

Does anyone know how to change the thickness of the window?

Upvotes: 0

Views: 3160

Answers (2)

Muhammad
Muhammad

Reputation: 1350

The border is drawn by the operating system, but you can create your own custom form, there is a library on CodePlex may help you to do what you need easily.

Drawing Custom Borders in Windows Forms

Drawing Custom Borders in Windows Forms

Upvotes: 0

Joel Coehoorn
Joel Coehoorn

Reputation: 415870

You don't get to control that. That's part of the user theme, and users can set any theme they want. You'll find it's also a problem on older versions of Windows if users have a theme with a wider border. You'll need to adjust your program's layout to allow for a little less space.

Upvotes: 1

Related Questions