|
by: DMD |
last post by:
How do I determine the column associated with the current edit location within a RichTextBox? The following code allow
me to determine the current line
txtLineNumber.Text = FormatNumber(RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart())+1,0
How do I determine the column location within the line? I must be missing something obvious, any help would be appreciated
|
by: Rachel Suddeth |
last post by:
I have the index of a line in the Lines array of a RichTextBox. I would like
to have it scroll so that line displays at the top. Is there no way to do
this?
The only way I can see to make it scroll is with ScrollToCaret(). But I
don't know how to set the "caret" to a particular line.
Any suggestions?
-Rachel
|
by: GSX |
last post by:
I've been reading and searching (and searching and reading) for far too
many hours. I'm rather new - so I apologize if this is an over asked
question...
I'm working on a small text editor as a learning project using the
RichTextBox control. I wish to display the current line and total line
count on the status bar, and also the cursor position on the current line.
I have found the current line by using...
|
by: Sakharam Phapale |
last post by:
Hi All,
How to get the starting and end character position of the given line no in
RichTextBox?
I have written following code but it takes more time.
Is there any RichTextBox function or API function which gives that?
Private Sub SetLineStartEndPosition(ByVal myRichTextBox as RichTextBox,
ByVal LineNo As Integer, ByRef StartPosition As Integer, ByRef EndPosition
As Integer)
|
by: Mark Raishbrook |
last post by:
....without resorting to SendMessage. Imagine, for example,
I have a small RTB whose text has wrapped as follows:
"This is a small test to see if I can get"
"both of these lines".
GetLineFromCharIndex(RTB.TextLength) returns 1, telling me
there are two lines in there. Using the Lines property to
retrieve them will fail, however. As the line has
soft-wrapped (i.e. the user has not hit Enter after "get"),
|
|
by: Udi |
last post by:
Hi,
I have derived my ConsoleTextBox from RichTextBox.
I'm trying to implement a console-like text box with history
capabilities.
My problem is that when I'm trying to append a command, I can't place
the cursor at the end of the text.
### See SetCmdLn() method: ####
protected override bool IsInputKey(Keys keyData)
|
by: Udi |
last post by:
Hi,
I have derived my ConsoleTextBox from RichTextBox.
I'm trying to implement a console-like text box with history
capabilities.
My problem is that when I'm trying to append a command, I can't place
the cursor at the end of the text.
### See code below - problem in SetCmdLn() ####
My questions are:
|
by: Don Gollahon |
last post by:
..NET 1.1
How do I get the line # the cursor is currently in in a RichTextBox?
Cursor x, y coordinates in the component would be nice.
Thanks.
--
Don Gollahon
|
by: macky caliston |
last post by:
Hi,
Im having problems with the value being returned by the richtextbox.GetLineFromCharIndex method. Its returning a value that is more than the richtextbox.Lines.Length.
Im trying to print selected lines of text from a richtextbox control.
Here is my sample code:
The lines of text in the richtextbox control is 3283.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
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...
|