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 what would you do to get rid of Microsoft visual basic name space?
What is web.config file?
Specify various states of the XMLHttpRequest along with their description.
Explain the use of App_Code folder in ASP.NET?
Describe briefly about ASP or Active Server Pages?
Write the difference between Select clause and the SelectMany() method in theLINQ?
Describe the appSettings Section which contains in a web.config file?
What do you mean by the Assembly Manifest?
Write the difference between unmanaged and managed code?
State the difference between GroupBox and Panel control?
18,76,764
1955788 Asked
3,689
Active Tutors
1419996
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!