請(qǐng)問(wèn)一下,在c#中,用什么控件怎么做才可以在點(diǎn)擊事件時(shí)打開一個(gè)例如txt的文件,要求直接打開該文件。非文件夾
1 回答

尚方寶劍之說(shuō)
TA貢獻(xiàn)1788條經(jīng)驗(yàn) 獲得超4個(gè)贊
System.Diagnostics.Process.Start(啟動(dòng)文件路徑, 參數(shù));
System.Diagnostics.Process.Start("notepad", "c:\\1.txt");
啟動(dòng)指定對(duì)象,并應(yīng)用參數(shù)
System.Diagnostics.Process.Start(啟動(dòng)文件路徑);
System.Diagnostics.Process.Start("c:\\1.txt");
啟動(dòng)指定對(duì)象
- 1 回答
- 0 關(guān)注
- 616 瀏覽
添加回答
舉報(bào)
0/150
提交
取消