Click here to Skip to main content
16,012,611 members
Home / Discussions / C#
   

C#

 
AnswerRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 8:53
Andrew Rissing7-Jun-10 8:53 
GeneralRe: MouseLeave event triggered on the wrong window Pin
martingeorgiev7-Jun-10 8:57
martingeorgiev7-Jun-10 8:57 
GeneralRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 9:06
Andrew Rissing7-Jun-10 9:06 
GeneralRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 9:17
Andrew Rissing7-Jun-10 9:17 
GeneralRe: MouseLeave event triggered on the wrong window Pin
martingeorgiev7-Jun-10 9:20
martingeorgiev7-Jun-10 9:20 
QuestionRIP BASED SOFTWARE ROUTER FOR WINDOWS using C# Pin
Member 32734627-Jun-10 7:29
Member 32734627-Jun-10 7:29 
Questionusing and close Pin
imbiz7-Jun-10 7:16
imbiz7-Jun-10 7:16 
AnswerRe: using and close Pin
Keith Barrow7-Jun-10 7:23
professionalKeith Barrow7-Jun-10 7:23 
The using statement calls the destructor on the connection object, this will close the connection implicitly without the need to make an explicit call.

The answer to your second question is no. You need the connection to be open to execute anything on it, and your should close it when you are finished with it (the using clause does this for you as above.), between this you can execute multiple calls. For the most part open --> [single]execute --> close is considered good practise as the SQL server has a limited number of incoming connections, and it is good practice to be parsimonious with these. Under certain circumstances, you might want to keep the connection open to make multiple calls, but this is unlikely in your case.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

GeneralRe: using and close Pin
imbiz7-Jun-10 9:20
imbiz7-Jun-10 9:20 
GeneralRe: using and close Pin
Chris Trelawny-Ross7-Jun-10 14:01
Chris Trelawny-Ross7-Jun-10 14:01 
GeneralRe: using and close Pin
imbiz7-Jun-10 14:46
imbiz7-Jun-10 14:46 
GeneralRe: using and close Pin
harold aptroot7-Jun-10 9:51
harold aptroot7-Jun-10 9:51 
AnswerRe: using and close Pin
harold aptroot7-Jun-10 7:25
harold aptroot7-Jun-10 7:25 
GeneralRe: using and close Pin
imbiz7-Jun-10 8:37
imbiz7-Jun-10 8:37 
AnswerRe: using and close Pin
PIEBALDconsult7-Jun-10 13:49
mvePIEBALDconsult7-Jun-10 13:49 
GeneralRe: using and close Pin
imbiz7-Jun-10 14:47
imbiz7-Jun-10 14:47 
AnswerRe: using and close Pin
prasadbuddhika7-Jun-10 18:35
prasadbuddhika7-Jun-10 18:35 
GeneralRe: using and close Pin
imbiz8-Jun-10 1:09
imbiz8-Jun-10 1:09 
Questiontext to speech problem Pin
maryamtooty7-Jun-10 6:08
maryamtooty7-Jun-10 6:08 
AnswerRe: text to speech problem Pin
Anshul R8-Jun-10 20:30
Anshul R8-Jun-10 20:30 
GeneralRe: text to speech problem Pin
maryamtooty11-Jun-10 5:20
maryamtooty11-Jun-10 5:20 
GeneralRe: text to speech problem Pin
Anshul R11-Jun-10 6:16
Anshul R11-Jun-10 6:16 
Questionhtml into cs Pin
genieabdo7-Jun-10 6:02
genieabdo7-Jun-10 6:02 
AnswerRe: html into cs Pin
genieabdo7-Jun-10 7:01
genieabdo7-Jun-10 7:01 
GeneralRe: html into cs Pin
Richard MacCutchan7-Jun-10 7:12
mveRichard MacCutchan7-Jun-10 7:12 

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.