String S = “String /n ;
String /n………..” Write (“abc”);
Write (“xyz”);
Abc xyz
File Edit Format Help
New Select All Fonts Help topics
Open Cut Colors About
Save Copy
Print Paste
Exit
The following controls are required to develop a notepad
Interested in mastering .NET? Learn more about ".NET Training" in this blog post.
Multiline = true
Dock = fill
Scrollbars = both
Allow drop = true
Right click on new set Image choose an image
Right click on cut properties short cut key
{
Using System . Io;
Using System . Drawing .Printing
}
Code for new menu Item (double click on new)
{
Text Box1. Text = “”;
}
Code for open menu Item
{
Open File Dialog 1. Show Dialog ();
String p = Open File Dialog 1. File Name;
Message box. Show (p);
Stream Reader sr = new Stream Reader (p);
Text box 1 .text = sr. Read To end ();
Sr. close ();
}
Code for save menu item
{
Save File Dialog 1. Show Dialog ();
String p = Save File Dialog 1 .File Name;
Stream Writer sw = new Stream Writer (p);
Sw. Write (text box1. text);
Sw. Flush ();
Sw. Close ();
}
Code for Print
{
Printer Setting ps = new Printer Settings ();
Print Dialog 1 .Printer Strings = ps;
Print Dialog1. Show Dialog ();
}
Code for exit {
Application .Exit ();
}
Code for Select ALL
{
Text box1.Select ALL();
}
Code for cut
text box 1.cut ();
text box1.copy ();
textbox1.paste ();
Font Dialog1.Show Dialog (); Text box 1. Font = font Dialog1. Font;
{ Color Dialog1. Show Dialog (); Text Box 1.fore color Dialog1. Color; }
{
Label L =new label ();
Dock = Dock Style .Fill ;
Font = new Font (“Arial”, 20)
Text = “ Type Help messages here” ;
Form f = new Form ();
control S .Add (L);
Show Dialog ();
}
View menu Solution Explorer right-click on my note (project name) add à new itemAbout box and provide the name test
Code for About
{
Test t = new Test ();
Show ();
}
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.