Sign in to follow this  
chrisliando

[.net] textBox ScrollBars and cursor

Recommended Posts

I have a few questions here about my application. My application is a Text Editor and Comparer. 1. I have a textBox with MultiLine mode activated. I have set the ScrollBars property to Both. But when I load a text file into it, only the Vertical one appears although the text file is quite long enough. What was wrong? 2. How to display the active cursor as blinking "^"(carat) character? And how to turn it back to the default cursor? The purpose is as an indication for user that he/she is in Edit mode. 3. After the file loaded into the textBox, the current state is Non-Edit mode. So I set the default textBox ReadOnly property to True. To change into Edit mode, user must click button Edit then the focus will be on the textBox. The problem is when textBox got focus, all the text was selected. I just want to display a single blinking cursor as ^ to show that the textBox is Editable. If I click Edit again, the mode turns into Non-Edit again and the cursor turns normal. How to do that? Thank you very much. [Edited by - chrisliando on January 27, 2008 9:25:16 PM]

Share this post


Link to post
Share on other sites
1. No, I did not. But now I have changed it to False.
Which one is better? With Horizontal scroll bar or not?

2. I just need to show ^ as cursor in Edit mode and turn it back to arrow in Non-Edit mode... How to do the custom one?

Please tell me..Thank you very much..

Share this post


Link to post
Share on other sites
Why not just use a label to indicate the mode? Or have a status bar on the form with a section that indicates the mode. Either of these are more standard approaches than changing the caret.

Share this post


Link to post
Share on other sites
Yes, I'd like to do that but the project specification expect me to do that. If until the last part of this project I haven't found it, I will use the other indicator like the ones you told me..

But is it possible to change the caret?

Thank you very much..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this