private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
// kesish
richTextBox1.Cut();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Copy();
}
private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
// joylash
richTextBox1.Paste();
}
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
// tanlash
richTextBox1.SelectedText = "";
}
private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
{
// hammmasini tanlash
richTextBox1.SelectAll();
}
private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e)
{
// word wrap shirtid yozish kodi
if (wordWrapToolStripMenuItem.Checked = false)
{
wordWrapToolStripMenuItem.Checked = false;
richTextBox1.WordWrap = false;
}
else
{
wordWrapToolStripMenuItem.Checked = true;
richTextBox1.WordWrap = true;
}
}
private void fontToolStripMenuItem_Click(object sender, EventArgs e)
{
// font bo`limi
fontDialog1.ShowDialog();
richTextBox1.SelectionFont = new Font(fontDialog1.Font.FontFamily, fontDialog1.Font.Size, fontDialog1.Font.Style);
}
private void highlightTextToolStripMenuItem_Click(object sender, EventArgs e)
{
// marker
richTextBox1.SelectionBackColor = Color.Yellow;
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
// about oynasini ochish
About About = new About();
About.ShowDialog();
}
private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
{
// we can also use savefile
Do'stlaringiz bilan baham: |