For a Winforms textbox, when you click and drag over the text, it highlights it. Is there a way to determine which direction the user dragged over?
Highlighting text in a Winforms textbox
183 Views Asked by FaceForward At
1
There are 1 best solutions below
Related Questions in WINFORMS
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- How to Require Confirmation on Form Close When there is Changed Data in a DataGridView
- self updating drawings C#
- Missingmanifestresourseexeption in auto genereted code of ImageList
- Child form implement in C# Winform
- Cannot find InvalidCastException in C# Application
- some labels appear gray in Visual Studio 2010
- c# richtextbox search with 2 forms
- Menu out of place when application is in full screen by Windows API
- How to access the Index of a changed Selection in a Datagridview
- showing a black transparent box over picturebox with an Image
- how to deselect all in RichTextBox before selecting newly found text?
- How to remove white space between border and BackColor?
- Validation DataGridView Windows Forms
- Invoke of a UserControl doesn't work
Related Questions in TEXTBOX
- All my JavaFX TextFields have lines in them
- Troubleshooting code for macro and textbox
- WPF text control with colors only
- WPF how to manage ENTER hit on TextBox for messaging purpose
- Split comma separated strings 5
- How to fetch data from text field without using any buttons?
- How can I create a WPF TextBox that conditionally converts user input?
- Implementing Autocomplete textbox in ASP.NET
- Output Command Line (.Bat FILE) show in textbox with c#
- Disable a MenuItem when TextBox of UserControl is empty
- PreviewlostkeyboardFocus event fires twice when I click on combobox WPF
- Turning Textbox Red with a timer when serial port stops outputting data
- How can I sum value in 8 textboxes to the a single textbox?
- How can i restrict user from entering the numeric and special characters in textbox?
- Can I run a Sub based on whether another Sub has run?
Related Questions in HIGHLIGHTING
- PHP designer 8 Syntax Highlighing
- Highlighting text in a Winforms textbox
- emacs preview duplicate lines before removing
- Change background color of selected text, HTML JQUERY
- JQuery Highlight Inner Text of Div, OnClick
- How to highlight a list item when a notification arrives
- highlighting button in java with timer
- How to prevent solr from highlighting unmatched terms?
- Highlighting a row in a table - jQuery
- How to prevent user copying text of a certain div using CSS?
- When using EGit Eclipse loses autocompleting and more
- Stemming and highlighting for phrase search
- Can't get highlighting on search results for relations using chewy gem
- How to get text highlighting of ractivejs template scripts in phpstorm?
- Sitecore 7 highlight search results
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no way to get this info using the Windows TextBox selection API. For example, the
EM_GETSELmessage defines the starting and ending character positions of the selection, but in a predefined (sorted) order.However you could get this info by handling the control's
MouseMoveevent. For example:By applying some logic to
mouseXyou could potentially discover the average direction the cursor is moving. It would work best if the user is making a linear motion. You could also handle the textbox's drag-and-drop event for similar mouse information if you only wanted the event raised while the user was dragging the mouse.