PC Review


Reply
Thread Tools Rate Thread

api - tracking LostFocus or Exit event of a combobox

 
 
=?Utf-8?B?c2ViYXN0aWVubQ==?=
Guest
Posts: n/a
 
      21st Aug 2007
Hi,

1. I am trying to capture the Exit or LostFocus event of a combobox on a
UserForm.
The Forms controls don't have a handle in vba and, while trying to find the
window 's class using Spy+, it seems like the combobox doesn't have a window
assicioted with it (unlike the listbox or a frame).
Any idea? Am i missing something?

2. If not direct way to (1)
To bypass the 'lack' of window for the combobox, i have placed the combobox
into a frame wrapped around it. However, i don't know how to get the handle
of the Frame. In spy++, the inside of the userform, the listbox, or the frame
have the same class (F3 Server 07600000).
Since I always show the frame programmatically (hidden most of the time) and
set its focus, I suppose i could use some sort of HitTest to determine the
window handle of the Frame. Then I could track the WM_KillFocus message
Any idea on a better approach?

Thank you for your help,

Sébastien
<http://www.ondemandanalysis.com>
 
Reply With Quote
 
 
 
 
=?Utf-8?B?c2ViYXN0aWVubQ==?=
Guest
Posts: n/a
 
      21st Aug 2007
Sorry about the duplicate post of the Question.
Please, post to the previous thread.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com>
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
api - tracking LostFocus or Exit event of a combobox =?Utf-8?B?c2ViYXN0aWVubQ==?= Microsoft Excel Programming 4 21st Aug 2007 10:45 PM
Combobox exit event search error Craig Microsoft Excel Programming 5 9th May 2006 06:55 PM
difference between lostfocus and on exit mcnewsxp Microsoft Access Form Coding 1 27th Oct 2005 04:17 PM
combobox exit event Dave D Microsoft Excel Programming 0 28th Apr 2004 10:22 PM
LostFocus event of ComboBox fires twice Ming Microsoft C# .NET 1 3rd Nov 2003 10:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:54 PM.