2

Hi I'm trying to create a console like interface using a richtextbox in WinForms using C#.

The reason why I am using a richtextbox is I want a few features such as selection,copy-paste that are not present in a normal console application.

I was wondering if it was possible to change the blinking cursor from the blinking "|" to a blinking "_"

Even if I could hide the original "|", I could then implement a functionality on the onchange event of the richtextbox to display the blinking, "_"

I also had another related question, but I don't know if I should put that here as well.

Also, if it will be easier to implement something like this using WPF, I'm willing to move.

4
  • 1
    look at this codeproject.com/Articles/335909/… Commented Oct 27, 2012 at 10:37
  • Although I can't exactly use that, but thanks for the link. Gave me a few new ideas! :) Commented Oct 27, 2012 at 10:50
  • 1
    I think you can create your own cursor with extension .cursor and assign it in properties of richTextBox.. Commented Oct 27, 2012 at 11:16
  • Selection and copy-paste not available in a normal console application? They are, just not with the normal keyboard shortcuts or right-click menu. Commented Oct 27, 2012 at 14:16

3 Answers 3

3

You need to change your RichTextBox's caret. Take a look at this: Custom Caret for WinForms richtextbox

Sign up to request clarification or add additional context in comments.

Comments

2

have a look at this Command Prompt Control

Comments

1

May be this one will suite for your need

http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.