Skip to main content

Posts

Showing posts from December, 2022

Windows form color

  'A form with custom border and title bar.     'Some functions, such as resize the window via mouse, are not implemented yet.      'The color and the width of the border.     Private borderColor As Color = Color.GreenYellow     Private borderWidth As Integer = 3     'The color and region of the header.     Private headerColor As Color = Color.GreenYellow     Private headerRect As Rectangle     'The region of the client.     Private clientRect As Rectangle     'The region of the title text.     Private titleRect As Rectangle     'The region of the minimum button.     Private miniBoxRect As Rectangle     'The region of the maximum button.     Private maxBoxRect As Rectangle     'The region of the close button.     Private closeBoxRect As Rectangle     'The states of the three header buttons.   ...