[問題] 如何在class中去啟動已經寫好的windows form
各位好...
CODE:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Trig_a_form
{
class Program
{
static void Main(string[] args)
{
Application.run(Form1);
}
}
}
我想再class Program的main function 啟動時把我已經寫好的windows form Form1
去activate起來...
可是試了一些方法都行不太通 請問問題在哪呢...
還是說 windows form Form1 它本身有method 可以自動啟動?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.130.102
→
06/15 21:36, , 1F
06/15 21:36, 1F
→
06/15 21:45, , 2F
06/15 21:45, 2F
→
06/15 21:45, , 3F
06/15 21:45, 3F
→
06/15 21:46, , 4F
06/15 21:46, 4F
→
06/15 21:49, , 5F
06/15 21:49, 5F
→
06/15 22:14, , 6F
06/15 22:14, 6F
→
06/15 22:14, , 7F
06/15 22:14, 7F
→
06/15 22:15, , 8F
06/15 22:15, 8F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章