Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Working with forms


Working with forms

Author
Message
marcus416
marcus416
Forum God
Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)Forum God (3.5K reputation)

Group: Forum Members
Posts: 48, Visits: 147
I have three (3) forms namely: Form1, Form2 and Form3



Using Form1, I will show the Form2.

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

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

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






What code should I write?

(,'')marcus™
Joey
Joey
Forum God
Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)

Group: Forum Members
Posts: 72, Visits: 46
I have not worked with vb.net in some time but if it's any help, in VB6 you could set the form.caption property of the textbox in the Form_Unload event of form1 to set the form title of form2.



Private Sub Form_Unload(Cancel As Integer)

Form2.Show

Form2.Caption = Form1.Text1



End Sub



GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search