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); }
Explain about the AJAX Control Extender Toolkit.
How we can enable impersonation in the web.config file?
What does it signify to state ‘the canonical’ form of the XML?
What do you mean by the term XML Infoset?
What does a break statement do in the switch statement?
In what way we can disable a context menu for the TextBox control?
Explain WebParts controls in ASP.NET and in what way we can provide WebParts control functionality to the server control?
Explain the syntax of the “for” loop.
Illustrate in .NET about different types of directives?
Why XMLHttpRequest object is used in the AJAX?
18,76,764
1953085 Asked
3,689
Active Tutors
1455140
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!