<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>HI 
all.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>I have a situation 
where I may need to have multiple comports monitored in an 
app.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>The number comports 
could be from 1 (most common) to 4 to 8 or however many.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>I think I would want 
to limit the number at some stage to say 8, but this is yet to be 
decided.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>Anyway, I can 
dynamically create the comports and set their properties etc, thats ok, BUT the 
problem I forsee is, when it comes to receiving data.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>ATM I use Async Pro 
created on the form, and have the event to handle the data coming in created and 
assigned etc.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>If I dynamically 
create a control I prob. cant really assign the event to the same event at the 
control that is created on the form, as it will prob. get data mixed up 
etc.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>So, what would be 
the best way to handle this?</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>I guess I could 
create 8 event handlers, but thats not exactly ideal.</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>Anyone got any 
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968515020-23112004><FONT face=Arial size=2>Thanks, 
Jeremy</FONT></SPAN></SPAN></DIV></DIV></BODY></HTML>