By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,680 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,680 IT Pros & Developers. It's quick & easy.

Problem with Dataset

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Rado" <r-****@szm.sk> wrote in message
news:#7**************@TK2MSFTNGP09.phx.gbl...
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


Private Const CST_FIELD_FIRSTNAME As String = "USERS.Ime"

txtFirstName.DataBindings.Add(New Binding("Text", m_dsMain,
CST_FIELD_FIRSTNAME))

search for help on 'BindingManagerBase'

Regards,

Josip Habjan
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.