static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); comm _com = new comm(); Drawing _drawing = new Drawing(_com); Thread threadCom = new Thread(_com.startCom); threadCom.Start(); Application.Run(_drawing); }
public Drawing(comm _com) { InitializeComponent(); this._com = _com; }