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); }
State the different ways by which a method can be overloaded?
Define constant and variable.
State classes which are introduced in the System.Numerics namespace.
Can more than one line be entered in a TextBox control?
Write the name of the method which is used to create a click event of Control class for Button control in C#?
What do you mean by the term Transport and Message Reliability?
Explain what would you do to get rid of Microsoft visual basic name space?
How can a text box be enforced to show characters in the uppercase?
Describe the differences between the Server-side and Client-side code?
State the advantages Web services have over the Component Object Model (COM) and also the Distributed Component Object Model (DCOM)?
18,76,764
1955030 Asked
3,689
Active Tutors
1430376
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!