• 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
M

Mattias Sjögren

#1
>''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

--
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)