473,799 Members | 2,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1471
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.mic rosoft.com> schreef in
bericht news:DB******** *************** ***********@mic rosoft.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 "DataCompon ent" 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_L oad(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim objDataComponen t as DataComponent
Text1.datasourc e = objDataComponen t.objOrders_dat aset.Tables(0). OrderID

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.mic rosoft.com> schreef in
bericht news:DB******** *************** ***********@mic rosoft.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
350
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 onto a single machine. Each server would then map to this directory remotely. I've tried this but it kicks of a slew of .Net System.Security.SecurityException: errors when I attempt to register this object into W2K 'Component Services'. If I...
1
1299
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 generated error message to show it to the end user? regards, bye
3
3478
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 changes n changings'll store on the server,is it possible that i can do it in ms access?
0
1369
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). Normally, my web methods would look something like this: public ReturnType GetSomeData(SomeType param1) {
1
1904
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 standard resources (hence .resx files). Plain Resx files do not seem to be a very scalable solution: We have dozens of servers and we do not want to access all servers to deploy files in case of minor changes in the personalized text. So we need...
1
1595
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 folder. Essentially, I would like to know if I can create a centralized Master Page and have it apply to multiple web sites. Kind of like using CSS to change the look and feel of all your page, except, the external style sheet would control all the...
8
2664
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 centralized database. Now, we are planning to implement audit trail to track which record is manipulated by which user.
3
4298
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 in s/w develepment...I am shobhit Gupta...23 years of age prusuing B.Tech in I.T. Engg. Final Year from Kurukshetra University, Kurukshetra. Recently, i have been working on a project which is to be implemented in a hospital for real life use...Its a...
4
1911
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 to generate "orders" containing data merged from "members" (MS Access DB), "employees" (MySQL DB) and "products" (flat file), and there will also be new attributes particular to "orders." At first I thought it would be most efficient to have my...
0
9686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.