473,804 Members | 3,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving the caret(Cursor) in a RichTextBox

In this program i set the RichTextBox property SelectionStart in order
to move the caret(cursor) onto the next character. I have a loop to do
this but unfortunately this is very slow. How would i use the
System.Windows. Forms.Cursor.Po sition to move myself onto the next
character. I need some way to measure each character in the string and
then move it forward. Is there any other way to move the caret forward.
I have tried the Select mthod also and it is slow too......need some
ideas thanks..

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
0 4485

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2450
by: Zvonko | last post by:
Hi! As mentioned in title. How to do it? Thanks Zvonko
4
5226
by: Ramsin Savra | last post by:
Hi How to move the cursor to line 6 (or any line) in a TextBox control ? thx
2
2907
by: randy | last post by:
Hi, I'm trying to set up a richtextbox to behave like the text area in a web browser, i.e. no caret, and a cursor that changes depending on what it's hovering over. I've been setting the cursor by testing the "Selection" properties of the text the cursor is over. This requires setting the SelectionStart property, which causes the caret to move. Ugh!
22
4549
by: DraguVaso | last post by:
Hi, For my application I need the following behavior: When I press F4 the cursor has to move to the next line in my multiline textbox which begins with "0". Finding lines starting with 0 isn't that difficult, but to find the next line is more difficult. For exemple: if my cursor is on line 200, it has to start searching on line 201, and not on line 1. Anybody has any ideas?
2
2817
by: gsb58 | last post by:
Hi! I'm new to VB.NET Anybody that could show me how to find the cursor position in a RichEdit? That is: when user click anywhere in the box and there's some text already, I want to programatically move to a new line and insert time, make a new line and user will be ready to insert new text.
1
2766
by: craigh01 | last post by:
Does anyone know how to change the cursor inside of a text box into a BLOCK CURSOR instead of the caret cursor. My page has a lot of pictures and then when you get to entering text in the text boxes you can hardly see the cursor.
3
2102
by: Mark A | last post by:
In the DB2 Admin Client (8.2.4), when the results of a query are displayed in the grid that looks like a spreadsheet (using Command Editor or double click on table name in Control Center). The data in this grid is updatable. When a cursor is first placed on one of the columns, no update takes place. When the cursor is then merely moved to another row (any column) the previous row is updated, even if it was not changed. If the user does...
0
920
by: Jerry Spence1 | last post by:
I've tried the following: Dim DP As New System.Drawing.Point DP.X = 50 DP.Y = 60 Windows.Forms.Cursor.Position = (DP) However, I want to move it inside an MDI form, and the above moves it over
9
6363
by: Michael A. Covington | last post by:
How do you keep a TextBox from displaying its caret (blinking vertical line, insertion point)? Setting it to ReadOnly doesn't do the job in VS 2005.
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.