Hi Cavin,
Try with below code:
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
ListBox1.FindItem(this.textBox1.Text,true,0,true);
uint LB_FINDSTRING = 0x018F;
IntPtr x = SendMessage(this.listBox2.Handle, LB_FINDSTRING, -1, textBox1.Text);
listBox2.SelectedIndex = x.ToInt32();
SendMessage(ListBox1.Handle,WM_VSCROLL ,SB_PAGETOP,0);
SendMessage(listBox2.Handle,WM_VSCROLL ,SB_PAGETOP,0);
for(int i=0; i
Hi Badri,
>
>The behavior of SendMessage can be achieved by using the FindItem or FindString method. Here is a sample.
>
>Regards,
>Calvin.
CS7.zip