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 DataContext class and how is it associated to LINQ?
Illustrate the difference between the const and readonly?
State some of technologies that are utilized within the AJAX?
Explain the working of cookie less session?
Illustrate some of the points regarding UserControl in WPF?
Write about the architecture of ADO.NET in brief.
Write the difference between Arrays and Collection?
What are validation controls? How many validation controls are present in ASP.NET 4.0?
Differentiate between SqlClient and OLEDB Provider?
Specify various types of assemblies and explain them.
18,76,764
1943301 Asked
3,689
Active Tutors
1412967
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!