Sumi
Sumi

Reputation: 127

borderless form edge

I want to make a borderless form that has a thin black edge (like the first one from the picture http://www.vcskicks.com/remove-titlebar.php ). I want to do this because the form is poorly visible(it combines with my background).

Upvotes: 4

Views: 4343

Answers (2)

Sam Oyl
Sam Oyl

Reputation: 381

  • Change the Form's padding to 1,1,1,1
  • Set the Form's backcolor to the color you want for your border
  • Add a panel
  • Set Panel to fill the form
  • Set Panel color to 'control' or whatever

Upvotes: 1

David
David

Reputation: 73554

  • Make a borderless form as described in the article you linked to
  • Add a Panel control
  • Set the panel's Dock to "fill"
  • Change the BorderStyle on the panel to get the effect you want. (BorderStyle.FixedSingle)
  • Add the remaining controls to the Panel.

Upvotes: 5

Related Questions