Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regarding Notify Icon Pin
sathish s8-Mar-06 20:41
sathish s8-Mar-06 20:41 
QuestionDetecting Keypresses in the keyboard buffer Pin
Phil (Strategy Map)8-Mar-06 17:10
Phil (Strategy Map)8-Mar-06 17:10 
QuestionMDI parent & Child Pin
RonBou8-Mar-06 16:31
RonBou8-Mar-06 16:31 
Questiondatabase handling in C# Pin
Jaymahinda8-Mar-06 14:47
Jaymahinda8-Mar-06 14:47 
AnswerRe: database handling in C# Pin
Le centriste8-Mar-06 15:10
Le centriste8-Mar-06 15:10 
AnswerRe: database handling in C# Pin
Sendilkumar.M8-Mar-06 16:11
Sendilkumar.M8-Mar-06 16:11 
AnswerRe: database handling in C# Pin
mcljava12-Mar-06 14:58
mcljava12-Mar-06 14:58 
AnswerRe: database handling in C# Pin
Brian Aihab9-Mar-10 22:42
Brian Aihab9-Mar-10 22:42 
hi am called brian

first of its not good to use only one connection in your application especially if your application is going to be a mull-ti user.but if it is a single user kind then its ok.
the easiest way of creating connections is
1] go to the solution exp on the right hand side of of the V.S window
and double click on the on the properties link it will open a window that contains the application settings but you select the settings option
then create your connections that is any no you want

eg(connection,ConnectionString,Select the data source)
1)in the first dropdown you create the connection name
2)in the second dropdown you specify the connection type(Connection String)
3)you select the Data source

2]to access them you will use this the following code

//create a variable[connecition]
SqlConnection connection=new SqlConnection ();
//use it to implement he connection string
connection.ConnectioString=Properties.settings.default.ConnectionString;

try that out
Questionhyperlink to open/save image Pin
missy48-Mar-06 14:10
missy48-Mar-06 14:10 
AnswerRe: hyperlink to open/save image Pin
Guffa8-Mar-06 18:27
Guffa8-Mar-06 18:27 
GeneralRe: hyperlink to open/save image Pin
missy48-Mar-06 18:30
missy48-Mar-06 18:30 
GeneralRe: hyperlink to open/save image Pin
missy48-Mar-06 19:40
missy48-Mar-06 19:40 
AnswerRe: hyperlink to open/save image Pin
Guffa9-Mar-06 6:41
Guffa9-Mar-06 6:41 
Questionserver error in crystal report Pin
angelagke8-Mar-06 13:47
angelagke8-Mar-06 13:47 
QuestionOverloading a class? Pin
eggsovereasy8-Mar-06 10:30
eggsovereasy8-Mar-06 10:30 
AnswerRe: Overloading a class? Pin
Le centriste8-Mar-06 16:00
Le centriste8-Mar-06 16:00 
AnswerRe: Overloading a class? Pin
Le centriste8-Mar-06 16:22
Le centriste8-Mar-06 16:22 
QuestionOLE in-place activation server Pin
Nikhil Dabas8-Mar-06 10:25
Nikhil Dabas8-Mar-06 10:25 
QuestionWindows Service like application for Windows CE? Pin
spAAwn8-Mar-06 10:11
spAAwn8-Mar-06 10:11 
QuestionIterating throu files Pin
Mr Marchepane8-Mar-06 8:48
Mr Marchepane8-Mar-06 8:48 
AnswerRe: Iterating throu files Pin
Kevin McFarlane8-Mar-06 10:17
Kevin McFarlane8-Mar-06 10:17 
QuestionAdd a checkbox to a openfiledialog ??? Pin
Ralf Hägenläuer8-Mar-06 8:27
Ralf Hägenläuer8-Mar-06 8:27 
AnswerRe: Add a checkbox to a openfiledialog ??? Pin
CWIZO8-Mar-06 10:36
CWIZO8-Mar-06 10:36 
GeneralRe: Add a checkbox to a openfiledialog ??? Pin
Steve Hansen9-Mar-06 3:22
Steve Hansen9-Mar-06 3:22 
GeneralRe: Add a checkbox to a openfiledialog ??? Pin
Ralf Hägenläuer9-Mar-06 10:35
Ralf Hägenläuer9-Mar-06 10:35 

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.