Fargona davlat universiteti matematika-informatika fakulteti


private void cutToolStripMenuItem_Click


Download 378.68 Kb.
bet10/11
Sana05.01.2023
Hajmi378.68 Kb.
#1079990
1   2   3   4   5   6   7   8   9   10   11
Bog'liq
dasturlash Obidjonova

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

Download 378.68 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   11




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling