R
Rado
Hello.
I have one question.
I make form1 and form2.
In form1 I make connection to databasee, make dataadpater, and generate
dataset.
On Form1 I have one Textbox. This textbox I bind with dataset.
And on Form2 I have textbox too, but I wouldn`t make connection, dataadpter,
and generate dataset, I want this textbox bind with dataset in Form1.
Have any idea How can I do it?
I think that I can write this:
****************************************************************************
****
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim frm As Form1
TextBox1.DataBindings.Add("Text0", frm.DataSet11, "moj.meno")
End Sub
****************************************************************************
***************
But probaly is wrong, because VB.NET while compling show error.
Thank You very much for yours answer.
I have one question.
I make form1 and form2.
In form1 I make connection to databasee, make dataadpater, and generate
dataset.
On Form1 I have one Textbox. This textbox I bind with dataset.
And on Form2 I have textbox too, but I wouldn`t make connection, dataadpter,
and generate dataset, I want this textbox bind with dataset in Form1.
Have any idea How can I do it?
I think that I can write this:
****************************************************************************
****
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim frm As Form1
TextBox1.DataBindings.Add("Text0", frm.DataSet11, "moj.meno")
End Sub
****************************************************************************
***************
But probaly is wrong, because VB.NET while compling show error.
Thank You very much for yours answer.