public Form1()
{
InitializeComponent();
this.Load += new EventHandler(Form1_Load);
}
void Form1_Load(object sender, EventArgs e)
{
richTextBox1.Text = "This\nis\nmy\nlittle\ntest!";
richTextBox1.ReadOnly = true;
richTextBox1.ZoomFactor = 3.0f;
richTextBox1.SelectAll();
richTextBox1.SelectionAlignment = HorizontalAlignment.Center;
}
And when I debug the program, with my mouse I can select the text from my richTextBox, and that cursor for typing appears on my richTextBox ( please check the screenshots ):
cursor: http://img132.images...06/75852424.png
cursor: http://img28.imagesh...09/43502289.png
selected text with mouse: http://img715.images...18/28203295.png
Actually, I tried with richTextBox.Enabled = false, but this property change my background color and my foreground color of my richTextBox...

New Topic/Question
Reply




MultiQuote




|