View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jozsef Bekes Jozsef Bekes is offline
external usenet poster
 
Posts: 2
Default HWND of Listbox in UserForm in Excel macro

Hi All,

I have created a wizzard like Excel macro application that uses UserForms as
dialogs. I have some listboxes on these dialogs. I would like to use
SendMessage to do some non trivial tasks on my control. All the examples I
have found on the Internet show that there is a hWnd property that contains
this value, but for my instance of Listbox vb complains that there is no
such property.

I have found this information at
http://forums.devx.com/archive/index.php/t-79377.html:

"The UserForm controls do not have a window handle property and the Forms
ListBox doesn't implement
the standard ListBox class."

My question is how to get the hwnd then, because this location does not
mention a way.

Thank you for all answers!

Regards,
Jozsi