Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: Checking required fields in a second Windows Form Pin
_Madmatt28-Oct-09 6:10
_Madmatt28-Oct-09 6:10 
GeneralRe: Checking required fields in a second Windows Form Pin
EliottA29-Oct-09 6:53
EliottA29-Oct-09 6:53 
GeneralRe: Checking required fields in a second Windows Form [modified] Pin
_Madmatt29-Oct-09 7:05
_Madmatt29-Oct-09 7:05 
GeneralRe: Checking required fields in a second Windows Form Pin
EliottA29-Oct-09 8:29
EliottA29-Oct-09 8:29 
GeneralRe: Checking required fields in a second Windows Form Pin
_Madmatt29-Oct-09 9:23
_Madmatt29-Oct-09 9:23 
GeneralRe: Checking required fields in a second Windows Form Pin
EliottA29-Oct-09 9:27
EliottA29-Oct-09 9:27 
GeneralRe: Checking required fields in a second Windows Form Pin
_Madmatt29-Oct-09 9:34
_Madmatt29-Oct-09 9:34 
QuestionSynchronous socket and WaitHandle/WaitAny confusion Pin
Jerry Evans26-Oct-09 8:05
Jerry Evans26-Oct-09 8:05 
Struggling to adapt a C++ pattern to C#. How do I get a WaitHandle from an IntPtr, which is the underlying socket handle to use in the socket thread as outlined below? I know there are Aysnc socket varieties but I'm keen to reuse this if at all possible. *** indicates the problem area in code

Thx++

Jerry
//
AutoResetEvent evtHalt = new AutoResetEvent;
//
Socket socket = new Socket(...);
//
WaitHandle handles = new WaitHandle(2);
// set up handles
handles[0] = evtHalt;
// *** Nope *** conversion problems -
handles[1] = socket.Handle;
//
while (true)
{
Int32 ret = WaitHandle.WaitAny(handles);
if (ret == 0)
{
// cancelled as evtHalt was signalled
break;
}
else if (ret == 1)
{
// socket signalled ... do something
}
}
AnswerRe: Synchronous socket and WaitHandle/WaitAny confusion Pin
Gary R. Wheeler29-Oct-09 12:57
Gary R. Wheeler29-Oct-09 12:57 
GeneralRe: Synchronous socket and WaitHandle/WaitAny confusion Pin
Jörgen Sigvardsson28-Mar-10 19:50
Jörgen Sigvardsson28-Mar-10 19:50 
QuestionNeed some guidance in making client-server software [modified] Pin
Munis-q26-Oct-09 7:38
Munis-q26-Oct-09 7:38 
AnswerRe: Need some guidance in making client-server software Pin
Paulo Zemek26-Oct-09 7:56
mvaPaulo Zemek26-Oct-09 7:56 
GeneralRe: Need some guidance in making client-server software Pin
Munis-q26-Oct-09 9:23
Munis-q26-Oct-09 9:23 
GeneralRe: Need some guidance in making client-server software Pin
Paulo Zemek26-Oct-09 12:48
mvaPaulo Zemek26-Oct-09 12:48 
AnswerRe: Need some guidance in making client-server software Pin
PIEBALDconsult26-Oct-09 10:01
mvePIEBALDconsult26-Oct-09 10:01 
GeneralRe: Need some guidance in making client-server software Pin
Munis-q27-Oct-09 2:22
Munis-q27-Oct-09 2:22 
GeneralRe: Need some guidance in making client-server software Pin
PIEBALDconsult27-Oct-09 3:21
mvePIEBALDconsult27-Oct-09 3:21 
GeneralRe: Need some guidance in making client-server software Pin
Munis-q27-Oct-09 6:00
Munis-q27-Oct-09 6:00 
GeneralRe: Need some guidance in making client-server software Pin
PIEBALDconsult27-Oct-09 9:45
mvePIEBALDconsult27-Oct-09 9:45 
GeneralRe: Need some guidance in making client-server software Pin
Munis-q27-Oct-09 21:17
Munis-q27-Oct-09 21:17 
GeneralRe: Need some guidance in making client-server software Pin
PIEBALDconsult28-Oct-09 4:33
mvePIEBALDconsult28-Oct-09 4:33 
QuestionJagged Array Problems [modified] Pin
Steve5177126-Oct-09 6:45
Steve5177126-Oct-09 6:45 
AnswerRe: Jagged Array Problems Pin
Richard MacCutchan26-Oct-09 7:00
mveRichard MacCutchan26-Oct-09 7:00 
AnswerRe: Jagged Array Problems Pin
OriginalGriff26-Oct-09 7:02
mveOriginalGriff26-Oct-09 7:02 
GeneralRe: Jagged Array Problems Pin
Steve5177126-Oct-09 7:23
Steve5177126-Oct-09 7:23 

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.