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

C#

 
QuestionHi Please help me Pin
NewbieProgs29-Sep-15 15:55
NewbieProgs29-Sep-15 15:55 
AnswerRe: Hi Please help me Pin
OriginalGriff29-Sep-15 20:35
mveOriginalGriff29-Sep-15 20:35 
AnswerRe: Hi Please help me Pin
aarif moh shaikh1-Oct-15 1:02
professionalaarif moh shaikh1-Oct-15 1:02 
QuestionHow to send .xlsx file as an email attachment in C#? Pin
Member 1162226629-Sep-15 3:50
Member 1162226629-Sep-15 3:50 
AnswerRe: How to send .xlsx file as an email attachment in C#? Pin
Chris Quinn29-Sep-15 4:15
Chris Quinn29-Sep-15 4:15 
AnswerRe: How to send .xlsx file as an email attachment in C#? Pin
ZurdoDev29-Sep-15 4:21
professionalZurdoDev29-Sep-15 4:21 
GeneralRe: How to send .xlsx file as an email attachment in C#? Pin
Member 1162226629-Sep-15 6:19
Member 1162226629-Sep-15 6:19 
QuestionSet Time outs on Serial Port Pin
Member 1206160029-Sep-15 3:09
Member 1206160029-Sep-15 3:09 
I have this C++ code for setting timeouts on serial port
C++
COMMTIMEOUTS *timeouts = new COMMTIMEOUTS ;
memset(timeouts, 0, sizeof(COMMTIMEOUTS)) ;
timeouts->ReadIntervalTimeout          = ReadIntervalTimeout ;
timeouts->ReadTotalTimeoutMultiplier   = 5 ;
timeouts->ReadTotalTimeoutConstant     = readTimeOut ; //...
timeouts->WriteTotalTimeoutConstant    = 0 ; //
timeouts->WriteTotalTimeoutMultiplier  = 2*BaudRate/8 ;
const bool ret = SetCommTimeouts(*hDev, timeouts) != FALSE ;
delete timeouts ;
m_currentTimeOut = readTimeOut ;

I need to rewrite this in C#. For SerialPort class I found these properties:
C++
_serialPort.ReadTimeout = 500;
_serialPort.WriteTimeout = 500;



Are they equivalent? It seems there are more parameters in play in the C++ code. How can I approach this? Or maybe other parameters are not needed? What is the best way to transform that C++ code to C#?
AnswerRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 4:23
professionalZurdoDev29-Sep-15 4:23 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 4:25
Member 1206160029-Sep-15 4:25 
GeneralRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 4:47
professionalZurdoDev29-Sep-15 4:47 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 4:59
Member 1206160029-Sep-15 4:59 
GeneralRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 5:07
professionalZurdoDev29-Sep-15 5:07 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 5:54
Member 1206160029-Sep-15 5:54 
GeneralRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 5:55
professionalZurdoDev29-Sep-15 5:55 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 6:25
Member 1206160029-Sep-15 6:25 
Questionhow send *.xlsx file as an attachment? Pin
Member 1162226629-Sep-15 1:33
Member 1162226629-Sep-15 1:33 
AnswerRe: how send *.xlsx file as an attachment? Pin
Dave Kreskowiak29-Sep-15 1:50
mveDave Kreskowiak29-Sep-15 1:50 
AnswerRe: how send *.xlsx file as an attachment? Pin
Richard Deeming29-Sep-15 2:20
mveRichard Deeming29-Sep-15 2:20 
GeneralMessage Closed Pin
29-Sep-15 2:49
Member 1162226629-Sep-15 2:49 
QuestionTileview Gridcontrol Pin
Member 1201862629-Sep-15 0:32
Member 1201862629-Sep-15 0:32 
AnswerRe: Tileview Gridcontrol Pin
CHill6029-Sep-15 0:58
mveCHill6029-Sep-15 0:58 
QuestionOpen Source PDF VIewer in Winform Pin
Anthony Fernando28-Sep-15 21:20
professionalAnthony Fernando28-Sep-15 21:20 
AnswerRe: Open Source PDF VIewer in Winform Pin
Richard MacCutchan28-Sep-15 21:34
mveRichard MacCutchan28-Sep-15 21:34 
GeneralRe: Open Source PDF VIewer in Winform Pin
Anthony Fernando28-Sep-15 21:55
professionalAnthony Fernando28-Sep-15 21:55 

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.