Hud









How do I use Hud
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: notepad1.cs Copy
63         private void newFileMaMethod()
64         {
65             //mainrichTextBox.Clear();
66             //agr new p clilck kry to ye msg ay
67             if (isFileDirty)
68             {
69
70
71                 DialogResult result = MessageBox.Show("Do you want to save changes ? ", "File Save", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information);
72                 //yes no k lye code
73                 switch (result)
74                 {
75
76                     case DialogResult.Yes:
77                         savefilemanu();
78                         break;
79
80                     case DialogResult.No:
81
82                         break;
83                     case DialogResult.Cancel:
84                         MessageBox.Show("Develop by Hassan Malik ","Go to New File", MessageBoxButtons.OK);
85                         //undoKlyeMethod();
86                         break;
87
88                 }
89
90             }
91
92             //mehod ha ye right click kr k iski defination ma ja k dekh skty ha
93             clearScreen(); //agr file ma kch ni ha to clearscreen ka jo khudsy method bnaya ha wo chly
94
95             //ye save k lye kia ha k phly koi file ni ha r dirty b ni ha r open b ni ha koi file
96             isFileAlreadySave = false;
97             currentOpenFileName = "";
98
99             EnableDisableUndoRedoProcessKaMethog(false);
100
101             messagetoolStripStatusLabel.Text = "New Document is Created ";
102
103         }
File name: notepad1.cs Copy
487         private void fontKlyeMethod()
488         {
489             // FontDialog fontdialog = new FontDialog() {
490             fontdialog.ShowColor = true;
491             fontdialog.ShowApply = true;
492
493             fontdialog.Apply += new System.EventHandler(fontdialog_apply);
494
495             // };
496             // fontdialog.ShowColor = true;
497
498             DialogResult result = fontdialog.ShowDialog(); //ye dialogresult khudsy agr na likha jay to uper sy copy krlyn
499
500             if (result == DialogResult.OK)
501             {
502                 if (mainrichTextBox.SelectionLength > 0)
503                 {
504                     mainrichTextBox.SelectionFont = fontdialog.Font;
505                     mainrichTextBox.SelectionColor = fontdialog.Color;
506                 }
507                 else
508                 {
509                     //MessageBox.Show("please select first");
510                 }
511             }
512             else
513             {
514
515
516             }
517
518         }

Download file with original file name:Hud

Hud 137 lượt xem

Gõ tìm kiếm nhanh...