This code works! This code captures "Doubleclicks" on a RichTextBox and then maximizes the richtextbox size. The problem is that some of the text in the richtextbox becomes selected automatically.
The problem is not the MaximizeRichTextbox subroutine. I've proven that.
Can you help me to stop the automatic text selection.
Private Sub txtrichbxMemo_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles txtrichbxMemo.MouseDown
Static lastclick As DateTime
If Convert.ToString(lastclick) = "#12:00:00 AM#" Then
lastclick = DateTime.Now : Exit Sub : End If
Dim Current_Time As DateTime = DateTime.Now
Dim diff As TimeSpan = Current_Time.Subtract(lastclick)
lastclick = DateTime.Now
If diff.Hours * 1000 + diff.Minutes * 1000 + _
diff.Seconds * 1000 + diff.Milliseconds < 500 Then MaximizeRichTextbox()
Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray.
The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way.
I've always enjoyed working with graphics, but it's never too clever to re-invent …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210 (2 * 3 * 5 * 7) or 2310 (2 * 3 * 5 * 7 * 11).
The larger templa…