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); }
List the difference between points, pixels, and em's at the time when fonts are displayed?
Differentiate MDI form and a standard form?
Explain about several validation controls which are available in ASP.NET AJAX 4.0?
Explain about the UpdatePanel control.
Explain the concept of Web services.
Specify the operating systems over which the .NET Framework runs upon?
Give the basic syntax of LINQ query in Visual Basic as well as in C#.
Distinguish the terms ADO.NET Dataset and an ADO Recordset?
Briefly describe side-by-side execution and also explain whether two applications, one using the shared assembly and other private assembly be declared as side-by-side executables?
Name the class which is inherited when the ASP.NET server control is added to the Web form?
18,76,764
1931330 Asked
3,689
Active Tutors
1419432
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!