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 different ways of deployment that are supported by .NET.
Name the three states which are set in a CheckState property of the CheckBox?
List some of the new features of ASP.NET AJAX 4.0?
Briefly describe about the XML elements.
How all items in the CheckedListBox control in .NET 4.0 can be checked/unchecked?
How can height of a combo box drop-down list can be adjusted?
Which method is used in .NET to enforce garbage collection?
How we can decide whether we should deploy application or publish application?
What is meant by the Object Pooling?
Briefly state the characteristics of the value-type variables which C# programming language supports.
18,76,764
1942200 Asked
3,689
Active Tutors
1461237
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!