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); }
Mention the two categories which distinctly classifies the variables of the C# programs.
Describe in brief regarding the visual basic?
Explain the use of a toolstrip container?
What can be inferred from the term Methods?
State various limitations of the AJAX.
What do you know about parameter and explain new types of the parameters introduced in the C# 4.0?
State the relationship between Class and an Object?
State the different types of authentication techniques which are used in connection strings to connect applications of .NET with Microsoft SQL Server?
Write down some of the Features of WPF in brief.
Write down a feature that is common to all the .NET languages?
18,76,764
1927216 Asked
3,689
Active Tutors
1424992
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!