0% found this document useful (0 votes)
5 views6 pages

C# Text Editor Project Guide

The document outlines a project to create a text editor using Microsoft Visual Studio, detailing the steps to add various functionalities such as file handling and text formatting. It includes code snippets for implementing features like opening, saving, and editing text files, as well as changing font and color settings. The final step involves testing the application by running it in the Visual Studio environment.

Uploaded by

ovezowoffical
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views6 pages

C# Text Editor Project Guide

The document outlines a project to create a text editor using Microsoft Visual Studio, detailing the steps to add various functionalities such as file handling and text formatting. It includes code snippets for implementing features like opening, saving, and editing text files, as well as changing font and color settings. The final step involves testing the application by running it in the Visual Studio environment.

Uploaded by

ovezowoffical
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Tejribe okuw – 5

Tema: Tekst redaktory taslamasy

Işiň maksady: Tekst redaktory taslamasyny döretmek

Ýumuş. Menýu setirine birnäçe funksiýalary goşmaly.


Ýumuşyň ýerine ýetirilişi:
Microsoft Visual Studio programmasyny işe goýberip Файл >> Создать >>
Проект saýlamaly. Şablonlardan Приложение Windows Forms goşmaçasyny
saýlaýarys we Tekst redaktory ady berip Ok düwmä basýarys.

Ýokardaky suratdan görnüşi ýaly, Formanyň üstüne bir sany menustrip, dört
sany ToolStrip we bir sany richTextBox, bir sany openFileDialog, bir sany
saveFileDialog, bir sany fontDialog, bir sany colorDialog elementlerini
ýerleşdirmeli. Hersine degişli atlaryny ýazmaly.
Programmanyň kody:
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];

namespace WindowsFormsApplication15
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void faýlToolStripMenuItem_Click(object sender, EventArgs e)


{

private void täzeFaýlToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link] = " ";
}

private void faýlyAçmakToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link] = "Text Files |*.txt";
if ([Link]() == [Link])
{
[Link] = [Link]([Link]);
}

private void ýatdaSaklamakToolStripMenuItem_Click(object sender, EventArgs


e)
{
[Link]();
[Link]([Link]);
}

private void çykmakToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void undoToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void copyToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void redoToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void cutToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void selectToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
}

private void belliklerToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]("bu tekst redaktory Visual Studio 2012-de doredildi");
}

private void sriftToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
[Link] = [Link];

private void renkToolStripMenuItem_Click(object sender, EventArgs e)


{
[Link]();
[Link] = [Link];
}

private void richTextBox1_TextChanged(object sender, EventArgs e)


{

}
}
}
F5 düwmä basyp programmany barlap görýäris.

You might also like