Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorNikita Voronchev <nikita.voronchev@ru.axxonsoft.com>2020-01-27 19:00:33 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2020-01-27 19:00:33 +0300
commitef053161074d290e5ea095109350710e2a288bff (patch)
treec9c9e4426aa1999ffcc6530fe6d35ed46920d455 /mcs/class
parent1fd0748362e9014469fc7e6390826c7a5fdab027 (diff)
[WinForms] Display caret while click on ComboBox (#18523)
If one click on a `ComboBox` the caret does not appear. This is so because `document.PositionCaret` call hides the caret.
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
index bda0cff694f..a2cc8560ffd 100644
--- a/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
+++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
@@ -1821,6 +1821,7 @@ namespace System.Windows.Forms
}
document.PositionCaret(e.X + document.ViewPortX, e.Y + document.ViewPortY);
+ document.DisplayCaret ();
if (dbliclick) {
switch (click_mode) {