|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SendMessage()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? > SendMessage() API takes as first parameter 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> 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? 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/ On Sat, 14 May 2005 12:52:41 -0400, "Jack" <replyto@newsgroup> wrote: Typically the only window available in the app to recieve a msg at> 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? 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) |
|||||||||||||||||||||||