2010-11-05 62 views

回答

1

我想你可以創建一個第1頁屬性包含的值,其在文本框中

Public ReadOnly Property TextBox1Value() As String 
    Get 
     Return theFirstTextBox.Text 
    End Get 
End Property 

而得到這個值,並將其傳遞到第二頁的構造例如

Public Sub New(ByVal value As String) 

    ' This call is required by the Windows Form Designer. 
    InitializeComponent() 

    ' Add any initialization after the InitializeComponent() call. 
    theSecondTextBox.Text = value 
End Sub 

Private Sub CreatePage2Method() 
    Dim page As Page2 = New Page2("BlaBlaBla") 
    NavigationService.Navigate(page) 
End Sub 

祝你好運!

相關問題