[此贴子已经被作者于2006-10-13 20:07:51编辑过]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace _013
{
public partial class Form1 : Form
{
private System.Diagnostics.Process process1;
public Form1()
{
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
//Form2 form = new Form2();
//form.HeightMax = 120;//窗体滚动的高度
//form.WidthMax = 148;//窗体滚动的宽度
//form.ScrollShow();
}
private void button2_Click(object sender, EventArgs e)
{
// this.process1.StartInfo.FileName = @"D:\program files\tencent\qq\CoralQQ.exe";
this .process1 .StartInfo .FileName ="D:/program files/tencent/qq/CoralQQ.exe";
this.process1.Start();
}
}
}