Office中国论坛/Access中国论坛

标题: 【作业】01课-coreluo [打印本页]

作者: coreluo    时间: 2014-3-7 23:23
标题: 【作业】01课-coreluo
本帖最后由 faunus 于 2014-3-7 23:42 编辑
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Microsoft.Office.Tools.Ribbon;

  6. namespace ExcelAddIn2
  7. {
  8.     public partial class Ribbon1
  9.     {
  10.         private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
  11.         {

  12.         }

  13.         private void kClick(object sender, RibbonControlEventArgs e)
  14.         {
  15.             System.Diagnostics.Process p = new System.Diagnostics.Process();
  16.             p.StartInfo.FileName = "notepad.exe";
  17.             p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  18.             p.Start();
  19.         }

  20.         private void checkBox1_Click(object sender, RibbonControlEventArgs e)
  21.         {

  22.         }


  23.         private void button2_Click(object sender, RibbonControlEventArgs e)
  24.         {
  25.             if (checkBox1.Checked == true)
  26.             {
  27.                 System.Diagnostics.Process.Start("http://www.baidu.com/");
  28.             }
  29.             else
  30.             {
  31.                 System.Diagnostics.Process.Start("http://yy.com/89272026/1107544603");
  32.             }
  33.         }
  34.     }
  35. }
复制代码


作者: coreluo    时间: 2014-3-7 23:24
作业是我同桌花了2H教我做的....非常感谢我的同桌...

作者: 紫电    时间: 2014-3-7 23:38
[attach]53408[/attach]符合题意


作者: faunus    时间: 2014-3-7 23:40
coreluo 发表于 2014-3-7 23:24
作业是我同桌花了2H教我做的....非常感谢我的同桌...

感谢同桌




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3