Пример #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     m_customMenu = SystemMenu.FromForm(this);
     m_customMenu.AppendSeparator();
     m_customMenu.AppendMenu(ABOUTMENU, "About Wechoid...");
     RemoveContextMenu(this);
     // Apply skin
     Telerik.WinControls.Themes.DesertTheme thm = new Telerik.WinControls.Themes.DesertTheme();
     ThemeResolutionService.ApplyThemeToControlTree(this, "Desert");
     About1.showAbout();
 }
Пример #2
0
 protected override void WndProc(ref Message m)
 {
     base.WndProc(ref m);
     // Test if the About item was selected from the system menu
     if (m.Msg == WM_SYSCOMMAND)
     {
         if (m.WParam.ToInt32() == ABOUTMENU)
         {
             About1.showAbout();
         }
     }
 }
Пример #3
0
 public static DialogResult showAbout()
 {
     my_about = new About1();
     my_about.ShowDialog();
     return(result);
 }