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 disconnected architecture of the ADO.NET's data access model?
Write down the three main points in WCF?
Mention different types of data providers available in .NET Framework.
Write the difference between Arrays and Collection?
Distinguish among in-proc and out-of-proc
Briefly describe the term destructor?
Web form belongs to which class in a .NET Framework class hierarchy?
How one can implement the text box to display characters in the uppercase?
Write the difference between adding items into cache by a Add() method and by the Insert() method?
Specify the various improvements made in the CAS in .NET 4.0?
18,76,764
1957325 Asked
3,689
Active Tutors
1436137
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!