Database-Dataenvironment.

  • Thread starter Thread starter Rado
  • Start date Start date
R

Rado

Hello.
I have One problem.
Whan I make database program in Visual Basic 6 which has some Forms. I make
Dataenvironment. There I make connection to my database. In command I select
table or write SQL comand.And Now I can acces to this tabel/ created new
table with SQL command/. Such that, when I put some textbox,datagrid to
first form I can bind this components with created Dataenvironment command.
When I put some commponents to second Form, thirs
form...................................
I can do same thing, so I can bind with created Dataenvironment command.
How Can I make it in Visual Basic.NET.
BEcause when I work with databases, I can make one connection in Server
Explorer, but I must make Dataadapter/Dataset/ for each Form.

Have any Idea how Can i do it, that I created one conection, once I write
Sql command, and on the this conecntion-command I should be accses from each
form ?
Thank You very much for your answer.
 
Hi

I'm not good at it but You may solve problem by using
public dataset in parentform to access data in it from
all forms. Same witch data adapter ect. or simply copy
parts you need i designer between forms.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top