You need to change the color of the text selection with the mouse (when you hold down the LMB). I can not find any information on this account, I tried it with RichTextBox->SelectionColor , but this is not this or I do not understand how to use it. For ListBox and ComboBox, I catch the DrawItem event and change the color in it e->State ^ DrawItemState::Selected . For TextBox I can’t find DrawItem and the selection principle is different here, so I don’t think it will work. The fact is that I have a program on skins and a lot of different controllers, both textboxes and listboxes, so the blue color of the selection is a eyesore, you need to change it. I stumbled upon the SelectionBrush parameter for TextBox , but on msdn there is an example only for Xaml , and I somehow don’t realize what it is and how to use it in the CLI (added Xaml namespace but no such parameter for textBox and RichTextBox ). Actually the question is how? or what am i doing wrong?
- oneYou have included so many tags that your application does not understand what technology uses WPF or WinForms? - Bulson
- winforms c ++ / cli - Smirnov
- Ok, today I can go after work. - Smirnov
|