473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Default highlight color

Hi,

When a textbox gets focus in WinForm, the text inside the textbox is
highlighted with default color. How can I get the value of the default
highlight color like the following?

Dim BackColor as Color = MyTextBox.BackColor
Dim ForeColor as Color = MyTextBox.ForeColor
' And hopefully I can use something like the following:
' Dim HighLightColor as Color = MyTextBox.HighlightColor

Thanks.
Mar 22 '06 #1
1 9836
Solved.
Dim HighLightColor as Color = SystemColors.Highlight

Thanks.
"John" wrote:
Hi,

When a textbox gets focus in WinForm, the text inside the textbox is
highlighted with default color. How can I get the value of the default
highlight color like the following?

Dim BackColor as Color = MyTextBox.BackColor
Dim ForeColor as Color = MyTextBox.ForeColor
' And hopefully I can use something like the following:
' Dim HighLightColor as Color = MyTextBox.HighlightColor

Thanks.

Mar 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Charles A. Lackman | last post by:
Hello, Looking for help changing the Highlight color in a Textbox in VB.NET. Any Suggestions will be greatly appreciated. Thanks, Chuck
1
by: Stefano Baldi | last post by:
I'm trying to change highlight color af a ListItem Here's my function Private Sub ListViewCustomDraw(ByRef m As System.Windows.Forms.Message) Dim lvcd As NMLVCUSTOMDRAW Dim...
3
by: psbasha | last post by:
Hi, I would like to change the UI default background color ( Grey) to some other color.What is the option in python to play with that? Thanks in advance PSB
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have found information on how to change the color of flags in Outlook, but I have not found anything that allows for the change of the actual color that is shown when you click on the flag...
4
by: spree | last post by:
Hi, I have a coloumn of buttons where i would like to highlight it when focussed... So, i have used onFocus element for it. Till here its ok. But if i set any background color for the button and...
1
by: john ciriello | last post by:
Hi, any way to change the default highlight color on a context menu from the ugly yellow? Thanks.
7
by: sphinney | last post by:
I have a datasheet style form with textbox (MyTextBox) that has the Text Format property set to "Rich Text". It is bound to a memo field in a table. How do I change the text or highlight color of...
1
by: dodgei | last post by:
I have a listbox with 5 options. How can I change the highlight color of the option that is currently selected?
0
nicebasic
by: nicebasic | last post by:
I'm writing a program that uses a RichTextBox. Since the Black Highlight Color is not readable in some cases, I need to change it at some times. I need another Selection or Highlight Color like...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.