Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
Questionserial port CreateFile in c# Pin
Member 1114321929-Dec-14 2:16
Member 1114321929-Dec-14 2:16 
AnswerRe: serial port CreateFile in c# Pin
OriginalGriff29-Dec-14 2:28
mveOriginalGriff29-Dec-14 2:28 
GeneralRe: serial port CreateFile in c# Pin
Member 1114321929-Dec-14 2:45
Member 1114321929-Dec-14 2:45 
GeneralRe: serial port CreateFile in c# Pin
Member 1114321929-Dec-14 2:55
Member 1114321929-Dec-14 2:55 
GeneralRe: serial port CreateFile in c# Pin
OriginalGriff29-Dec-14 3:42
mveOriginalGriff29-Dec-14 3:42 
Questionusing SqlConncetion Pin
Jassim Rahma29-Dec-14 1:16
Jassim Rahma29-Dec-14 1:16 
AnswerRe: using SqlConncetion Pin
OriginalGriff29-Dec-14 2:02
mveOriginalGriff29-Dec-14 2:02 
AnswerRe: using SqlConncetion Pin
Dominic Burford30-Dec-14 5:52
professionalDominic Burford30-Dec-14 5:52 
In your methods that require a SqlConnection ensure you use a using block to enclose your connection related code. Objects that implement the IDispose interface (of which SqlConnection does) is guaranteed to be disposed when completed.

C#
using (SqlConnection conn = new SqlConnection())
{
  //code here
}

"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare

Home | LinkedIn | Google+ | Twitter

QuestionObj.Orientation structure newbie/intermediate question Pin
BlindNavigator29-Dec-14 0:04
BlindNavigator29-Dec-14 0:04 
AnswerRe: Obj.Orientation structure newbie/intermediate question Pin
Pete O'Hanlon29-Dec-14 4:45
mvePete O'Hanlon29-Dec-14 4:45 
GeneralRe: Obj.Orientation structure newbie/intermediate question Pin
BlindNavigator29-Dec-14 5:37
BlindNavigator29-Dec-14 5:37 
AnswerRe: Obj.Orientation structure newbie/intermediate question Pin
BillWoodruff29-Dec-14 5:17
professionalBillWoodruff29-Dec-14 5:17 
QuestionWorkFlow Pin
Zeyad Jalil28-Dec-14 20:58
professionalZeyad Jalil28-Dec-14 20:58 
AnswerRe: WorkFlow Pin
Pete O'Hanlon28-Dec-14 21:21
mvePete O'Hanlon28-Dec-14 21:21 
QuestionCreate diagonal in the DevExpress XtraReport Pin
nhanlaptrinh28-Dec-14 1:42
nhanlaptrinh28-Dec-14 1:42 
AnswerRe: Create diagonal in the DevExpress XtraReport Pin
Richard Andrew x6428-Dec-14 10:41
professionalRichard Andrew x6428-Dec-14 10:41 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 3:59
nhanlaptrinh29-Dec-14 3:59 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
Pete O'Hanlon29-Dec-14 4:38
mvePete O'Hanlon29-Dec-14 4:38 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 17:33
nhanlaptrinh29-Dec-14 17:33 
Questionwindows service to execute ms sql qurey Pin
Member 1129047526-Dec-14 19:25
Member 1129047526-Dec-14 19:25 
AnswerRe: windows service to execute ms sql qurey Pin
Garth J Lancaster26-Dec-14 19:39
professionalGarth J Lancaster26-Dec-14 19:39 
QuestionCan anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 16:29
Member 1133710826-Dec-14 16:29 
GeneralRe: Can anyone give me advice on nested loops? Pin
PIEBALDconsult26-Dec-14 17:18
mvePIEBALDconsult26-Dec-14 17:18 
AnswerRe: Can anyone give me advice on nested loops? Pin
tarun199126-Dec-14 19:08
professionaltarun199126-Dec-14 19:08 
AnswerRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 20:51
professionalBillWoodruff26-Dec-14 20:51 

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.