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

Centralized

P: n/a
hi,
I was using Borland delphi earlier and it was realy easy when it comes to
Database oriented application Development. In delphi, it got a centralized
table handling module called "Data Module". In there we could put all data
connections, table and make it available throught out the application which
gives a centralized maintanance of data without redeclaring any objects for
each forms.

I want to know how could I make available the data components to every form
and to make it centralized in VB.NET, rather than declare objects for each
forms ?

I'm using Visual Studio.NET 2003.
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hifni,

Add a "Component" to your solution using right click in Solution Explorer
and than selecting "Component" and use that as your centralized Data Access
Layer.

I hope this helps,

Cor

"Hifni Shahzard" <Hi***********@discussions.microsoft.com> schreef in
bericht news:DB**********************************@microsof t.com...
hi,
I was using Borland delphi earlier and it was realy easy when it comes to
Database oriented application Development. In delphi, it got a centralized
table handling module called "Data Module". In there we could put all data
connections, table and make it available throught out the application
which
gives a centralized maintanance of data without redeclaring any objects
for
each forms.

I want to know how could I make available the data components to every
form
and to make it centralized in VB.NET, rather than declare objects for each
forms ?

I'm using Visual Studio.NET 2003.
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.

Nov 21 '05 #2

P: n/a
Hi Again,
Got another question:

Assume that I created a Component Class called "DataComponent" and inserted
a SQLConnection, Adapters ...etc. Now I've a form called frmOrderEntry and in
it are some controls such as textboxs, datagrids..etc. Now I want to databind
to those controls(text boxes, grids...etc). For that Do I need to write the
code as mentioned below in the forms Load event or different. If different,
pls help me to write this code:

Private Sub frmOrderEntry_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim objDataComponent as DataComponent
Text1.datasource = objDataComponent.objOrders_dataset.Tables(0).Order ID

Like wise
"
"
"

End Sub

Is it like this that I've to bound the data to controls?

--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.
"Cor Ligthert [MVP]" wrote:
Hifni,

Add a "Component" to your solution using right click in Solution Explorer
and than selecting "Component" and use that as your centralized Data Access
Layer.

I hope this helps,

Cor

"Hifni Shahzard" <Hi***********@discussions.microsoft.com> schreef in
bericht news:DB**********************************@microsof t.com...
hi,
I was using Borland delphi earlier and it was realy easy when it comes to
Database oriented application Development. In delphi, it got a centralized
table handling module called "Data Module". In there we could put all data
connections, table and make it available throught out the application
which
gives a centralized maintanance of data without redeclaring any objects
for
each forms.

I want to know how could I make available the data components to every
form
and to make it centralized in VB.NET, rather than declare objects for each
forms ?

I'm using Visual Studio.NET 2003.
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.


Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.