• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Re: P/Invoke Problem selected index changing

  • Thread starter Mattias Sjögren
  • Start date

Mattias Sjögren

>''try to set focus

>SendNotifyMessage(ipCountry, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
>SendMessageByString(ipCountry, CB_SETCURSEL, iCountryCbo, 0)
>SendNotifyMessage(ipZip, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
>I tried moving the setfocus calls around with no luck-

Have you also tried sending WM_KILLFOCUS to the window that you "tab
out from"?


Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)