|
本帖最后由 faunus 于 2014-3-7 23:42 编辑
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Office.Tools.Ribbon;
- namespace ExcelAddIn2
- {
- public partial class Ribbon1
- {
- private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
- {
- }
- private void kClick(object sender, RibbonControlEventArgs e)
- {
- System.Diagnostics.Process p = new System.Diagnostics.Process();
- p.StartInfo.FileName = "notepad.exe";
- p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
- p.Start();
- }
- private void checkBox1_Click(object sender, RibbonControlEventArgs e)
- {
- }
- private void button2_Click(object sender, RibbonControlEventArgs e)
- {
- if (checkBox1.Checked == true)
- {
- System.Diagnostics.Process.Start("http://www.baidu.com/");
- }
- else
- {
- System.Diagnostics.Process.Start("http://yy.com/89272026/1107544603");
- }
- }
- }
- }
复制代码
|
评分
-
查看全部评分
|