473,503 Members | 4,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# 2003 windows Application

366 Contributor
Hello friends

I have done web applications using layered technology but first time going for

windows application.where i got many douts

first think as we hav web.config in webapplication we can go for a global connection string and we can use where ever it is nedded but how this can be solved in windows application what is best method to follow

is there any good architecture regarding windows application to follow

hope that some will up with the solution...

thanks and regards
nmsreddi
Dec 11 '06 #1
2 1391
bhar
37 New Member
Hello friends

I have done web applications using layered technology but first time going for

windows application.where i got many douts

first think as we hav web.config in webapplication we can go for a global connection string and we can use where ever it is nedded but how this can be solved in windows application what is best method to follow

is there any good architecture regarding windows application to follow

hope that some will up with the solution...

thanks and regards
nmsreddi
Hi,

You need to create the Application configuration file in your project.

Right click on the project. Select Add->New Item->Application Configuration File and click on the Add button. The file named App.Config file is going to add to your project.

Type the following code in the Config file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Northwind" value="data source=localhost;initial catalog=Northwind;password=;persist security info=True;user id=sa;workstation id=CPU-TENOTEBOOK;packet size=4096" />
</appSettings>
</configuration>


And type the following code in the the form.

Dim dbpath As String = ConfigurationSettings.AppSettings("DatabasePath")
Books for programmers, http://www.vkinfotek.com


Regards
madhav
Dec 11 '06 #2
nmsreddi
366 Contributor
hello madhav

thanks for your reply

can you give any suggestion regarding good architecture to follow in windows application which can be flexible for future modification by dividing the projects as bussiness and database modules.

how the class files should be maintained any links regarding layers in windows application.



thanks and regards

nmsreddi
Dec 13 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
3733
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
1
2383
by: Marino | last post by:
Hi all, I have a Windows 2003 server, which is also a terminal server for application, with sql 2000 installed. My company has developed an application that uses SQL 2000 as its database. The...
2
13490
by: FrodoBaggins | last post by:
Dear Team, I am running Visual Studio 2003 Version 7.1.3088 on Windows Server 2003. I have written a C# application that must write to the event log. When it attempts to write to the event log,...
2
6385
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
2
2157
by: David | last post by:
Hello, I have an application that has been running for years and had little problem with it. We've been retesting the latest code under Windows 2003 and found a surprise. There is a certain...
4
4028
by: Matthew Louden | last post by:
My ASP.NET application is working fine when I run under IIS Personal Web Server in Windows 2000 machine. However, after I upload all the files to the Windows Server 2003 machine, and tried to run...
5
2674
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
2
5012
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
3
1999
by: Vinod R.Shenoy | last post by:
Hi All, Came across a post wherin you had helped somebody with a similar problem and was wondering if you could help us out with it. Our problem is , We have a development SQL Server 2000...
4
2332
by: snare88 | last post by:
I have a question regarding a VB.NET 2003 application which was built on a Windows XP machine with Office 2002 installed. The software does some interfacing with Microsoft Excel. I now want to...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7012
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
7468
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...
0
5598
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,...
1
5023
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...
0
3180
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...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.