Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Let's say you type this code in Form2.vb and want it to go to the textbox in forum1
- Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
- Form1.TextBox1.Text = "Text here"
- 'or you can do this where it doesn't replace the current text in the form 1 textbox
- Form1.TextBox1.Text = Form1.TextBox1.Text & "Text here that will go right after the existing text in form1."
- 'then there is this option that will go to the next line in the textbox
- Form1.TextBox1.Text = Form1.TextBox1.Text & vbNewLine & "You are now on a new line, but text will go in the textbox in form1"
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement