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); }
Describe code access security (CAS)?
What do you understand by the term ASP.NET Web Forms?
List the advantages of the DLR?
Explain the ASP.NET AJAX?
Describe the major subsystems of the WPF (Windows Presentation Foundation) in brief?
Explain the disconnected architecture of the ADO.NET's data access model.
Name the parent class which is used to create all Windows services in .net?
Provide a detailed introduction on the Side-by-side execution. May two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executable?
What are the enrichment in the ClickOnce deployment in the .NET 4.0?
Explain the use of a CommandBuilder class?
18,76,764
1951794 Asked
3,689
Active Tutors
1424682
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!