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); }
What Global.asax file includes in event handlers?
Explain the XmlWriter class.
How we can dynamically add the user controls to the page?
Name the different types of authentication techniques which are used in the connection strings to connect the .NET applications with the Microsoft SQL Server?
Is it possible to create a Windows Service by using WPF?
What we can do to allot page specific attributes in the ASP.NET application?
Write the name of the method which is used to create a click event of Control class for Button control in C#?
What are the different ways to manage state in ASP.Net?
State different types of data providers existing in .NET Framework?
In ASP.Net which namespaces imported automatically by Visual Studio?
18,76,764
1931008 Asked
3,689
Active Tutors
1447130
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!