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); }
How a condition can be implemented in the workflow?
What is meant by the Object Pooling?
Illustrate some of the points regarding CustomControls in WPF?
Explain the use of a Connection object?
Write about Windows Azure operating system.
Distinguish between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
Write the difference between the WindowsDefaultLocation and WindowsDefaultBounds properties?
Explain the following methods DataAdapter.Update() and DataSetAcceptChanges()?
Illustrate various types of Validation Controls?
Write the syntax to declare the namespace in the .NET and in VB?
18,76,764
1953327 Asked
3,689
Active Tutors
1412183
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!