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); }
When.NET was developed?
State the role of ScriptManagerProxy control?
Explain the use of App_Code folder in ASP.NET?
How we can prevent users of the application from editing a text in ComboBox controls in the .NET 4.0?
Mention the basic steps to perform the LINQ query.
Differentiate between int32 and int?
What are the layouts of ASP.NET Pages?
In ASP.Net which namespaces imported automatically by Visual Studio?
How we can dynamically add the user controls to the page?
Briefly explain round trip?
18,76,764
1937361 Asked
3,689
Active Tutors
1412097
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!