Advertisement
Abel_Software

Passing Between Forums

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