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); }
Write down the classes which derive from the abstract System.Windows.Shapes.Shape class in the WPF?
Describe DataReader object?
List all templates of a Repeater control?
State various limitations of the AJAX.
Write about the difference between OLEDB Provider and the SqlClient?
Write a major difference between a RadioButton control and a CheckBox control?
State the properties in C# and the advantages that are obtained by using them in programs.
What do you mean by ASP?
Differentiate between Web server controls and HTML?
Can we enter more than single line in the TextBox control?
18,76,764
1929464 Asked
3,689
Active Tutors
1456989
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!