RichTextBox control very limited?

S

sunrise

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top