How to pass value of a textbox from one form to another form

前端 未结 6 1654
广开言路
广开言路 2021-01-21 09:06

If I have a value stored into a textbox of form1 and I have to pass that value into an another textbox of another form2. What is the method to do this passing values from one fo

6条回答
  •  一向
    一向 (楼主)
    2021-01-21 09:28

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
    ' timer1 must be set to true
    
    Timer1.Start() Form1.Show() Me.Hide()
    
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Form1.TextBox13.Text = TextBox1.Text
    

提交回复
热议问题