RichTextBox control
How the cursor can be programmatically positioned on a given line or on a character in the RichTextBox control in C#?
Expert
RichTextBox control consists of the Lines array property, that exhibit one item of array in a separate line. Every line entry has a Length property that may be used in order to properly position cursor at a character, it is demonstrated in the following given code snippet:
private void GoToLineAndColumn(RichTextBox RTB, int Line, int Column) { int offset = 0; for(int i = 0; i < Line -1 && i < RTB.Lines.Length; i++) { offset += RTB.Lines[i].Length + 1; } RTB.Focus(); RTB.Select(offset + Column, 0); }
Explain about the Take and Skip clauses?
Elucidate Role based security?
What is meant by the term Assembly?
Explain the ASP.NET AJAX?
Explain Language Integrated Query (LINQ)?
How can a text box be enforced to show characters in the uppercase?
Describe Common Language Specification (CLS)?
Elucidate the term Windows authentication?
Describe the relationship between an object and the class?
Explain the use of Role-based security?
18,76,764
1950609 Asked
3,689
Active Tutors
1420471
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!