Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27159

Working with Forms

$
0
0
I have three (3) forms namely: Form1, Form2 and Form3

Using Form1, I will show the Form2.
Code:

Dim FormTwo as New Form2
FormTwo.ShowDialog

Using Form1 again, I will the Form3 but the Title should be the value of TextBox1 in Form2
Code:

Dim FormThree as New Form3
FormThree.Text = Form2.TextBox1.Text 'should be like this
FormThree.ShowDialog

and when I close Form3, the Title of Form2 should be the value of TextBox1 in Form3
Code:

Form2.Title = Form3.TextBox1.Text 'something like this

What code should I write?

Viewing all articles
Browse latest Browse all 27159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>