GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - memoarfaa/TextBoxBorderColor: A Windows Forms TextBox control having BorderColor property.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
TextBoxBorderColor.png
TextBoxBorderColor.png
 
 

Repository files navigation

TextBox Border Color

You can change border color of TextBox by overriding WndProc method and handling WM_NCPAINT message. This way you can draw on non-client area of the TextBox control.

To do so, get the window device context of the control using GetWindowDC. Then to draw, create a Graphics object from that context, then draw border for control.

You need to the control when assigning new BorderColor or when the size of control changes. To do so, you can use RedrawWindow method.

MyTextBox control has a BorderColor property. The control uses BorderColor if the property values is different than Color.Transparent and BorderStyle is its default value Fixed3d. To see the themed border color, set the BorderColor to Color.Transparent.

TextBoxBorderColor

About

A Windows Forms TextBox control having BorderColor property.

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.