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); }
Briefly describe deployment?
What do you mean by the term non_deterministic finalization?
Name and describe some of the exclusive characteristics which are present in the VB?
Write the name of namespaces which are required to allow the use of the databases in the ASP.NET pages?
What will happen if the ASP.NET server control with the event-handling routines is absent from its definition?
What are XML attribute?
Explain the use of <sessionState> tag in a web.config file?
Why there is a requirement of user-defined controls?
What is meant by the Managed Extensibility Framework?
What is meant by the Runtime services?
18,76,764
1960663 Asked
3,689
Active Tutors
1451188
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!