Click here to Skip to main content
16,005,037 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to fetch primary key field Pin
Suman Singh5-May-05 3:55
professionalSuman Singh5-May-05 3:55 
GeneralRe: How to fetch primary key field Pin
Colin Angus Mackay5-May-05 4:14
Colin Angus Mackay5-May-05 4:14 
GeneralRe: How to fetch primary key field Pin
Suman Singh6-May-05 8:26
professionalSuman Singh6-May-05 8:26 
GeneralRefreshing graphics with GDI+ Pin
leoprex28-Apr-05 23:34
leoprex28-Apr-05 23:34 
GeneralSMS Pin
Anonymous28-Apr-05 17:16
Anonymous28-Apr-05 17:16 
GeneralRe: SMS Pin
Dave Kreskowiak29-Apr-05 2:05
mveDave Kreskowiak29-Apr-05 2:05 
GeneralIntegrate AppConfig file Pin
Joey Picerno28-Apr-05 16:55
Joey Picerno28-Apr-05 16:55 
GeneralRe: Integrate AppConfig file Pin
rudy.net28-Apr-05 18:13
rudy.net28-Apr-05 18:13 
Right click on your project, select "Add -> New Item" and select "Application Configuration File". Make sure it is called "App.Config".
On your application drag from the toolbar to your form a "SqlConnection" object. View properties of SqlConnection object and select "Dynamic Properties" then Check the default "Connection String".
Next, create a connection string and save all.
By now you should see in "App.Config" a key value pair that is added for your SqlConnection object and its connection string.
To read from your code:
using System.Configuration
myConnectionString = ConfigurationSettings.AppSettings("your key name")
GeneralRe: Integrate AppConfig file Pin
Len Miller28-Apr-05 19:56
Len Miller28-Apr-05 19:56 
GeneralRe: Integrate AppConfig file Pin
Het210928-Apr-05 20:45
Het210928-Apr-05 20:45 
GeneralStreaming Media using Windows Media PLayer Pin
vishalmishra28-Apr-05 14:32
vishalmishra28-Apr-05 14:32 
GeneralShell.Application not returning all windows Pin
Asad Hussain28-Apr-05 10:40
Asad Hussain28-Apr-05 10:40 
GeneralRe: Shell.Application not returning all windows Pin
Dave Kreskowiak29-Apr-05 6:04
mveDave Kreskowiak29-Apr-05 6:04 
Questionsite templating... how? Pin
cavall28-Apr-05 9:35
cavall28-Apr-05 9:35 
AnswerRe: site templating... how? Pin
Dave Kreskowiak29-Apr-05 2:02
mveDave Kreskowiak29-Apr-05 2:02 
GeneralTips of a class Pin
roberto1979es28-Apr-05 9:19
roberto1979es28-Apr-05 9:19 
GeneralRe: Tips of a class Pin
rudy.net28-Apr-05 17:39
rudy.net28-Apr-05 17:39 
GeneralClose form Pin
ADY00728-Apr-05 8:12
ADY00728-Apr-05 8:12 
GeneralRe: Close form Pin
Anonymous29-Apr-05 3:31
Anonymous29-Apr-05 3:31 
GeneralClose form Pin
ADY00729-Apr-05 4:32
ADY00729-Apr-05 4:32 
GeneralRe: Close form Pin
Dave Kreskowiak29-Apr-05 5:38
mveDave Kreskowiak29-Apr-05 5:38 
GeneralRe: Close form Pin
ADY00729-Apr-05 5:51
ADY00729-Apr-05 5:51 
GeneralVB.NET to Open, Edit and Save As New Word .doc or .dot Pin
alcowboy28-Apr-05 7:13
alcowboy28-Apr-05 7:13 
GeneralRe: VB.NET to Open, Edit and Save As New Word .doc or .dot Pin
nidhishri4-May-05 20:49
nidhishri4-May-05 20:49 
GeneralShortcuts and Deployments Pin
Meatnog28-Apr-05 6:09
Meatnog28-Apr-05 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.