private void Button1_Click(object sender, EventArgs e) { textBox1.Text = "正在获取实例,请稍候!由于程序启动需要时间,请耐心等待。"; try { pApplication = new Photoshop.Application(); textBox1.Text = "已获取实例,当前版本:" + pApplication.Version; button2.Enabled = true; button3.Enabled = true; button4.Enabled = true; button5.Enabled = true; button6.Enabled = true; button7.Enabled = true; } catch (Exception err) { MessageBox.Show(this, err.Message, "实例获取失败", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); textBox1.Text = "实例获取失败,错误详情如下:" + err.Message; return; } }