Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

several forms connect with database

Status
Not open for further replies.

ayaxrm

Programmer
Dec 11, 2008
11
ES

Hi, I want to make in vb.net an application that open several forms and show records of sql database. But, in each form I want to navigate in the table independently.

I make a vb.net project with a mdi forms with BindingManagerBase and binding connect with dataset.

Public Class frm_mant_comp
Private enlace_base_comp As BindingManagerBase

Private Sub frm_mant_comp_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim enlace_comp As Binding

enlace_comp = New Binding("Text", datos, "tabla_componentes.cod_comp")

Me.txt_codigo_comp.DataBindings.Add(enlace_comp)

enlace_comp = Nothing


enlace_comp = New Binding("Text", datos, "tabla_componentes.desc_comp")

Me.txt_desc_comp.DataBindings.Add(enlace_comp)

enlace_comp = Nothing


Me.enlace_base_comp = Me.BindingContext(datos, "tabla_componentes")

Call verCuenta()


End Sub
end class

but when I open several forms it shows a records, but when I navigate in a form, all of them navigate too.

how can I make them independent but point to the same dataset?...

thanks a lot

P.D.-excuse me for my bad english :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top