Click here to Skip to main content
15,894,362 members
Articles / Programming Languages / C# 4.0

Line Numbers for RichText Control in C#

Rate me:
Please Sign up or sign in to vote.
4.89/5 (22 votes)
11 Aug 2009CDDL3 min read 160.3K   7.4K   64  
Display line numbers for rich text box with auto sizing. This is a converted version from another article written in VB.NET.
/*
 * Copyright (C) 2000-2009 - Xeno Innovations, Inc.
 * User: DSuess
 * Date: 8/8/2009
 * Time: 8:11 PM
 * 
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace testApp
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
CEO Xeno Innovations, Inc.
United States United States
[ Exceeding the Limits of Imagination ]

Comments and Discussions