Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 24th, 2007, 09:03 AM
Authorized User
 
Join Date: Mar 2007
Location: Baroda, Gujarat, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to smp4774
Default VB 2005 Appsetting

I am using VS 2005 and Visual Basic. I added App.config file to store Custom information like Server name, User Id, and password. When I try to write code in

App.config contains below data,
<Appsettings>
<add key="servername" value="Myserver">
<add key="username" value="sa">
</Appsettings>

Class1.vb file,

Import system.configuration

Sub Getconnection
    dim x as string
    x=configurationmanager.appsetting("servername")
end sub

My VS 2005 not show me configurationmanager class, system.configuration.configmanager class not available.

What's the problem?
I want to know it urgent base. Please reply as soon as possible. As, I have to finish project in 2 days.

Thanks in Advance.

Reply With Quote
  #2 (permalink)  
Old July 25th, 2007, 04:32 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

In Visual Studio 2005, Microsoft has made it easier to add and retrieve application settings. You should add new application settings by double clicking on "My Project" in the Solution Explorer. This should bring you to the Settings tab so you can add new application settings.

You can retrieve those settings in code by using the My namespace. For example, in my project I store the form size in an application setting called FormSize. To retreive this size in code I use: My.Settings.FormSize.

I hope this helps.

Thearon
Reply With Quote
  #3 (permalink)  
Old July 25th, 2007, 09:42 AM
Authorized User
 
Join Date: Mar 2007
Location: Baroda, Gujarat, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to smp4774
Default

Thanks Thearon,

Can you suggest me any e-book which can be help me to learn new VS 2005 techniques. So, instead of using previous one I can make my application better. I am new to VS 2005. I know begginer level VB.Net 2003. Sample Application details also help me lots. As, I like to read only that part which I Don't know or new for me.

Reply With Quote
  #4 (permalink)  
Old July 30th, 2007, 05:54 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Professional VB 2005 should do the trick if you feel comfortable with the VB .Net language. You can get the e-book online at Amazon following this link: http://www.amazon.com/Professional-V...5835901&sr=1-1

Thearon
Reply With Quote
  #5 (permalink)  
Old October 21st, 2007, 09:46 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

to work with the configuration class should be references configuration class to your application
follow this stpes
my project ----> references -----> add... ------> system.configuration
in your declarations form write
Imports System.Configuration

after that you can showing config calss




Reply With Quote
  #6 (permalink)  
Old August 10th, 2008, 12:09 PM
Registered User
 
Join Date: Aug 2008
Location: Kolkata, West Bengal, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by smp4774
 Thanks Thearon,

I am new to VS 2005. Sample Application details also help me lots. so, send me a sample project details to learn more.

PRIT
Reply With Quote
  #7 (permalink)  
Old August 13th, 2008, 04:57 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Prit,

You can download the code for this book at the Wrox web site which has lots of code samples. Additionally, you can create a new project in VS2005 and then double click on My Project in the Solution Explorer window. Then click on the Settings tab and you will see where you can add, modify, and remove application settings. See my previous post in this thread for accessing those settings in code.

Thearon
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a VB 2005 exe file on a system without VB dilionyi Pro Visual Basic 2005 3 September 21st, 2009 07:37 PM
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Worked on ASP 2005 but new to VB 2005 akhilhp Visual Basic 2005 Basics 0 May 18th, 2007 12:37 AM
MS VB 2005 vs. MS VB 2005 Express NevadaBob Visual Basic 2005 Basics 2 January 24th, 2006 06:36 PM
Should I go VB.NET or VB 2005 from VB6? HB Visual Studio 2005 1 December 9th, 2005 03:13 AM



All times are GMT -4. The time now is 07:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.