[VB.NET]請問用MDI管理的子表單要怎麼互相存取呢
請輸入專案類型(網站專案或者應用程式專案):應用程式
不好意思,想請問一下
假設我有三個表單
form1為MdiContainer
然後在form1 Load的event中
Dim f2 As New Form2
f2.MdiParent = Me
f2.Show()
然後在form2 Load的event中
Dim f3 As New Form3
f3.MdiParent = Me.MdiParent
f3.Show()
這樣form2跟form3都可以讀取到彼此的資料
如textbox2 in form2 ,textbox3 in form3
在form2使用 MsgBox(Form3.TextBox3.Text)
可以正確顯示出來
但是更改了TextBox3的資料之後
再執行 MsgBox(Form3.TextBox3.Text)
顯示出來的資料並不會因為我改變了資料而改變
(在form3也是一樣的情況)
Google了一段時間,找到的都是一個form 產生另一個form
然後彼此之間可以正確存取資料
但是這種用MDI的兩個child form之間的溝通還沒爬到
不曉得有沒有大大能指點一下呢?
在此先說聲謝謝^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.34.57.113
推
11/22 06:34, , 1F
11/22 06:34, 1F
→
11/22 09:22, , 2F
11/22 09:22, 2F
→
11/22 11:11, , 3F
11/22 11:11, 3F
→
11/22 11:11, , 4F
11/22 11:11, 4F
→
11/22 11:11, , 5F
11/22 11:11, 5F
推
11/22 18:06, , 6F
11/22 18:06, 6F
→
11/22 18:06, , 7F
11/22 18:06, 7F
→
11/23 10:25, , 8F
11/23 10:25, 8F
→
11/23 10:32, , 9F
11/23 10:32, 9F
→
11/23 10:56, , 10F
11/23 10:56, 10F
→
11/23 10:57, , 11F
11/23 10:57, 11F
→
11/23 10:57, , 12F
11/23 10:57, 12F
→
11/23 11:14, , 13F
11/23 11:14, 13F
→
11/23 11:14, , 14F
11/23 11:14, 14F
→
11/23 11:16, , 15F
11/23 11:16, 15F
→
11/23 11:17, , 16F
11/23 11:17, 16F
→
11/23 11:17, , 17F
11/23 11:17, 17F
推
11/23 20:38, , 18F
11/23 20:38, 18F
→
11/23 22:15, , 19F
11/23 22:15, 19F
→
11/23 22:16, , 20F
11/23 22:16, 20F
→
11/23 22:17, , 21F
11/23 22:17, 21F
→
11/23 22:17, , 22F
11/23 22:17, 22F
→
11/25 08:32, , 23F
11/25 08:32, 23F
→
11/25 08:33, , 24F
11/25 08:33, 24F
→
11/25 08:34, , 25F
11/25 08:34, 25F
→
11/25 08:34, , 26F
11/25 08:34, 26F
→
11/25 08:36, , 27F
11/25 08:36, 27F
→
11/25 08:37, , 28F
11/25 08:37, 28F
→
11/25 08:43, , 29F
11/25 08:43, 29F
→
11/25 17:31, , 30F
11/25 17:31, 30F
→
11/25 17:32, , 31F
11/25 17:32, 31F
→
11/25 21:48, , 32F
11/25 21:48, 32F
→
11/25 21:49, , 33F
11/25 21:49, 33F
推
11/25 23:00, , 34F
11/25 23:00, 34F
→
11/26 00:09, , 35F
11/26 00:09, 35F
→
11/26 00:10, , 36F
11/26 00:10, 36F
→
11/26 12:43, , 37F
11/26 12:43, 37F
→
11/26 12:43, , 38F
11/26 12:43, 38F
→
11/26 17:40, , 39F
11/26 17:40, 39F
→
11/26 17:41, , 40F
11/26 17:41, 40F
→
11/26 17:41, , 41F
11/26 17:41, 41F
→
11/26 17:50, , 42F
11/26 17:50, 42F
→
11/26 17:51, , 43F
11/26 17:51, 43F
→
11/26 17:51, , 44F
11/26 17:51, 44F
推
11/26 23:28, , 45F
11/26 23:28, 45F
→
11/26 23:28, , 46F
11/26 23:28, 46F
推
11/26 23:39, , 47F
11/26 23:39, 47F
→
11/27 09:04, , 48F
11/27 09:04, 48F
→
11/27 09:05, , 49F
11/27 09:05, 49F
推
11/27 19:23, , 50F
11/27 19:23, 50F
→
11/27 19:23, , 51F
11/27 19:23, 51F
→
11/29 12:32, , 52F
11/29 12:32, 52F
→
11/29 12:33, , 53F
11/29 12:33, 53F
→
11/29 12:34, , 54F
11/29 12:34, 54F
→
11/29 12:35, , 55F
11/29 12:35, 55F
→
11/29 12:37, , 56F
11/29 12:37, 56F
→
11/29 12:37, , 57F
11/29 12:37, 57F
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章