Visual Studio 2013- c# NotePad Tutorial

Published: 05 July 2014
on channel: Eyal Geulayev
4,280
32

Visual Studio 2013- c# NotePad Tutorial


Codes:

new:
richTextBox1.Clear();

open:
OpenFileDialog op = new OpenFileDialog();
if (op.ShowDialog() == DialogResult.OK)
richTextBox1.LoadFile(op.FileName, RichTextBoxStreamType .PlainText );
this.Text = op.FileName;

save:
SaveFileDialog op = new SaveFileDialog ();
op.Filter ="Text Document(*.txt)|*.txt|All Files(*.*)|*.*";
if (op.ShowDialog() == DialogResult.OK)
richTextBox1.SaveFile (op.FileName, RichTextBoxStreamType.PlainText);
this.Text = op.FileName;



undo:
richTextBox1.Undo();


cut:
richTextBox1.Cut();


copy:
richTextBox1.Copy();


paste:
richTextBox1.Paste();

clear:
richTextBox1.Clear();


select all:
richTextBox1.SelectAll();


color:
ColorDialog op = new ColorDialog ();
if (op.ShowDialog() == DialogResult.OK)
richTextBox1.ForeColor = op.Color;


font:
FontDialog op = new FontDialog();
if (op.ShowDialog() == DialogResult.OK)
richTextBox1.Font = op.Font ;


On this page of the site you can watch the video online Visual Studio 2013- c# NotePad Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Eyal Geulayev 05 July 2014, share the link with friends and acquaintances, this video has already been watched 4,280 times on youtube and it was liked by 32 viewers. Enjoy your viewing!