简体   繁体   中英

How to change border colour and thicknesses in visual studio vb.net

I have a label on my form which I'm wanting to have a thick white border. At the moment i have selected a border style from properties but I can't edit it.

Is there a way I can change this?

I'm guessing I can hard code it in the designer bit but I'm not sure how to.

Maybe you can try the following method:

  1. Set FormBorderStyle to None
  2. Cover the form with a panel and leave some space for border
  3. Set the color you want for the border as the form back color

Use the panel serves as the main container,then you can change the background and the form serves as the border. You can also refer to this link .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM