Basic question

  • Thread starter Thread starter vul
  • Start date Start date
V

vul

I'm working with VB6 and SQL Server 2000 now. There is a need to rewrite an
existing application using VB 2005 (db is going to be the same at this
point).
In VB6 the application can be created with using data controls or with more
flexible stuff (Commands, Recordsets). The first (data controls) approach is
much simpler, but it's ugly.
I'm starting to work with VB 2005 and in all examples and topics I've read
so far I see Data Sources, Data Bindings, and something else which reminds
me those data controls. I'm a very beginner and may be wrong in this
conclusion.
What is the best approach to work with data in VB 2005? I would not want to
spend the time on learning something which will be easy to create, but later
will bring a lot of problems (many years ago I had them with data controls)

Thank you
Al
 
Vul,

What is the best is in VBNet a not to answer question because there are so
many alternatives.

About using the Strongly Typed Dataset as it is now as two different
versions in Net 1.x and Net 2.0 are we in these newsgroup probably all not
direct charmed. Although the 2.0 version is in my opinion much better than
the 1.x version.

Using the datacontrols and using binding is what is surely the way to go,
however.

Have a look at this simple sample how to use binding and currency. Which can
be even much more compressed, however.

http://www.vb-tips.com/default.aspx?ID=869eb278-0b5f-4dfd-8068-4e3f3fedb997

To see that most binded format

Click Data in top of your form -> Add DataSource, do the wizard using a
DataBase (by instance Northwind.

Click Data again and then -> DataSources. A window open at the left. Drag
from that the table to your form.

A simple however almost complete (except error checking) application is
build for you.

I hope this helps,

Cor
 
Back
Top