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); }
Briefly describe about keywords also give example.
Write the name of event which determines that all controls are completely loaded into the memory?
Write down a short note regarding the .NET?
What do you understand by Common Type System (CTS)?
Explain the use of a CommandBuilder class?
Write the difference between the Literal control and Label control?
Describe four workflow principles?
Describe code access security (CAS)?
Illustrate the basic difference between the PenLineCap's Flat and Square values?
What is the concept of CAS?
18,76,764
1960583 Asked
3,689
Active Tutors
1433323
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!