Changing the textBox selected highlight color - Critical Issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having a custom textBoxControl derived from Windows TextBox Control
I want to change the selection highlight default color, which is blue to say Green
But am nowhere getting any solution as to how can i change that highlight color from default Blue to Green
Offcourse one solution is to change the system brush but it will then affect all the other applications running on my maching which should not happen..

Does anybody had any idea how is it possible?

Hi Bob / Herfried can u slove this fro me please......
 
* =?Utf-8?B?TmlsZXNo?= said:
Hi Bob / Herfried can u slove this fro me please......

I feel sorry, but I don't know if that is possible. There may be a way
using p/invoke, but I don't have an idea.
 
Hi Nilesh,

I'm afraid it is not possible. That seting is global for the system.



--
B\rgds
Stoitcho Goutsev (100) [C# MVP]

Nilesh said:
I am having a custom textBoxControl derived from Windows TextBox Control.
I want to change the selection highlight default color, which is blue to say Green.
But am nowhere getting any solution as to how can i change that highlight
color from default Blue to Green.
Offcourse one solution is to change the system brush but it will then
affect all the other applications running on my maching which should not
happen...
 
TextBox is a thin wrapper around the old text control from Win32. You're
stuck with it's capabilities.

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Subscribe to the RSS feed at http://bobpowelldotnet.blogspot.com
to get notifications of all new GDI+ FAQ articles and Windows Forms Tips and
Tricks

Nilesh said:
I am having a custom textBoxControl derived from Windows TextBox Control.
I want to change the selection highlight default color, which is blue to say Green.
But am nowhere getting any solution as to how can i change that highlight
color from default Blue to Green.
Offcourse one solution is to change the system brush but it will then
affect all the other applications running on my maching which should not
happen...
 
Back
Top