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 the major subsystems of the WPF (Windows Presentation Foundation) in brief?
Write down in brief, the objects in asp.net and state the main purpose of such objects?
What is the function of "EnableViewState" property? Why do we require it On or Off?
State the parameters which controls most of connection pooling behaviors?
What do you mean by the term WPF?
Explain the benefits of using the ADO.NET in .NET 4.0?
Define the term “Array”.
Explain about the AppFabric component?
What is the function of DialogResult property of the Button control?
Explain the Code Contracts?
18,76,764
1932378 Asked
3,689
Active Tutors
1450607
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!