473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Centralized

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
2 1457
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rick Close | last post by:
Question: Is it possible to centralize the DLL location when using .Net COM+ components? We have three servers that currently utilize the same DLL set on each machine. I'd like to centralize this...
1
by: ss | last post by:
Hi, Could anyone tell me like, how do i do centralized Error Handling, What are all the things I need to take care while Error Handling? How Can I have my own messages instead of system...
3
by: Mehreen | last post by:
i have made a database in ms access,now i want to centralized this data base on my network,i want that actual database'll reside on the server the clients can access that database n can make...
0
by: rshekhtm | last post by:
Hi everyone, I would like to get your opinion on a technique I came up with when faced with the problem of redundant code in every web method (authentication, logging, exception handling)....
1
by: vecozo | last post by:
Centralized resource files Hi, We are considering to migrate our custom asp.net localization procedure, to one that stored .Text properties of controls in a SQL database, towards the usage of...
1
by: Lucas Davenport | last post by:
I have the task of creating several one-page websites for our subsidiaries. I would like to use the MasterPage concept with this task. The sites will all be separate site, located in their own...
8
by: PreethiParkavi | last post by:
Dear Friends, We are developing an inventory maintenance project in C#.net 2005 with MSDE as back end.Data can be accessed by multiuser at the same time, because they are from a single...
3
by: shobhitguptait | last post by:
How to Run C#.NET Windows App on N/W with centralized DB using SQL SERVER 2000 Hello All...i m really grate full to c such a website where developers try to help people like us who face problems...
4
by: snfctech | last post by:
I have a project to create a dashboard that will connect to existing systems as well as create new features based on combining data from the existing systems. For example, the dashboard will be able...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.