473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

RichTextBox control very limited?

I've been playing around the RichTextBox and reading a few articles, in
order to create a text editor like Notepad++ in C#.

To be frank, I'm very disappointed by the RichTextBox control
capabilities. What I've been looking for is:

- What's the current row/line
- What's the current column
- Highlight the latest word
- Change the font specification to a selected area only
- Move the cursor within the control

In general I can say that those operations are not easy at all, and in
some cases they even seem to require API calls.

I like C# and I like GUI dev with VS.NET, but I'm often left wondering
why certain things weren't done in an easy way. That's what I would
have expected (don't take it too literally, it's just an example):

- What's the current row/line

mybox.CurentLine

- What's the current column

mybox.CurrenColumn

- Highlight the latest word

mybox.SelectLastWord

- Change the font specification to a selected area only

mybox.Selected.font = "Verdana 14pt"

- Move the cursor within the control

mybox.GoTo(34,12)

Ok, end of the rant. What do you think?

sunrise

Jul 23 '06 #1
1 1530
"sunrise" <pl************@gmail.comha scritto nel messaggio
I've been playing around the RichTextBox and reading a few articles, in
order to create a text editor like Notepad++ in C#.

To be frank, I'm very disappointed by the RichTextBox control
capabilities.
I agree with you.
Maybe this can help you to save time and health :)

http://www.codeproject.com/useritems...codeeditor.asp

--

Free .Net Reporting Tool - http://www.neodatatype.net
Jul 23 '06 #2

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

Similar topics

1
by: vanvee | last post by:
Hi I have a user control that contains a RichTextBox in vb.net. In my program, I create multiple instances of this control (with the RichTextBox being in each one), that appear one above the...
1
by: Patrick Blackman | last post by:
Has anyone used CreateWindowEX API to create a control in C#? I want to create the Richtextbox control using this method so I can have better control over the underlying interfaces to substantial...
1
by: Nathan Carroll | last post by:
In an mdi environment I constructed a child for with a richtextbox control that is used to load .rtf's. This works fine on the intiatial load of the form but when for is closed and reopened later...
2
by: Neo Chou | last post by:
Greetings! I'm trying to make my ASPX page able to process WORD format document. I learned that RichTextBox might help me, but I can't use it either by adding it to my Web Control list or by...
3
by: New World Order Pigs | last post by:
I am trying to use the .net version of the richtextbox control on a web page and when I use the "system.windows.forms" namespace the richtextbox does show up in the toolbox but it is greyed out. I...
1
by: tulasi | last post by:
I am placing textbox controls and combo box controls on richtext box and 2 command buttons on form control. after executing the application i'll place some text into textbox controls and select a...
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
3
by: michael sorens | last post by:
The documentation for the RichTextBox is sketchy at best. I want to do a very simple task but I cannot find information on this. I am using a RichTextBox as an output window. Some text I want to...
4
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.