form 與 form 間的怪問題

看板C_Sharp (C#)作者 (小東)時間20年前 (2004/11/30 21:37), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
我用了 form1 裡.... form2 form2 = new form2(); form2.show(); this.hide(); ------------------------------ form2 裡.... form1 form1 = new form1(); form1.show(); this.hide(); //以上這行改成 this.dispose() 也是一樣情形 最後在 form1 裡 結束==> this.close() 為什我 form1~2 間 按了好多次後.. 再按 form1 裡的結束 this.close() 程式沒法子真正結束 要怎寫才好呢.. 對了.. 還有在 form2 結束時 無論按 自己設的button 或按視窗右上的xx.. 如果在此二條件下.. 能做出離開 form2 也會呼叫 form1 出來啊.. 要怎做呢=.= -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.131.7.26 ※ 編輯: dhon 來自: 220.131.7.26 (11/30 22:14)

219.84.81.23 12/02, , 1F
Application.Exit();
219.84.81.23 12/02, 1F
文章代碼(AID): #11h7U8bG (C_Sharp)
討論串 (同標題文章)
文章代碼(AID): #11h7U8bG (C_Sharp)