Home All Groups Group Topic Archive Search About
Author
14 May 2005 4:52 PM
Jack
Hello,
          SendMessage() API takes as first parameter handle.
When SendMessage() is used in Main routine located in the module and at
startup there is not any form loaded yet,  what should I use for the handle?

Author
14 May 2005 5:04 PM
Mike D Sutton
>           SendMessage() API takes as first parameter handle.
> When SendMessage() is used in Main routine located in the module and at
> startup there is not any form loaded yet,  what should I use for the handle?

What are you trying to do?  SendMessage() sends a message to a window, if you have no window then you can't send it a message?  If
you have a form in your project then put the code in your Form_Load() method instead of Main().
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/
Author
14 May 2005 5:11 PM
Tom Esh
On Sat, 14 May 2005 12:52:41 -0400, "Jack" <replyto@newsgroup> wrote:

>          SendMessage() API takes as first parameter handle.
>When SendMessage() is used in Main routine located in the module and at
>startup there is not any form loaded yet,  what should I use for the handle?

Typically the only window available in the app to recieve a msg at
that time would be the non-visible "ThunderMain" /  "ThunderRT6Main"
class window. Perhaps if you explained what you need to do... ?


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)

AddThis Social Bookmark Button