<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ive tried this but it doesn't seem to 
work</FONT></DIV>
<DIV><FONT face=Arial 
size=2>PostMessage(ComboBox1.Handle,WM_SETTEXT,0,Integer(pChar('XXX')));<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Is this correct?&nbsp; It doesn't 
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm doing this in the OnChange event for the 
ComboBox.&nbsp; Setting the Text property directly doesn't work in this event 
because it occurs before the change rather than after it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Would I need to use a Timer?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</DIV></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ross@stationplaylist.com href="mailto:ross@stationplaylist.com">Ross 
  Levis</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz 
  href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, January 22, 2007 1:27 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> ComboBox.Text</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>I want to update the Text property of a TComboBox 
  using PostMessage, so it's delayed until after the&nbsp;current procedure 
  finishes.&nbsp; Can someone help me out with a piece of code.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Many thanks.</FONT></DIV>
  <DIV><FONT face=Arial size=2>Ross.</FONT></DIV></BLOCKQUOTE></BODY></HTML>