Home > Archive > Visual Basic > March 2006 > getting application handle
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
getting application handle
|
|
|
| Hello:
I work in VB6 and I have a Delphi Dll that I must pass the main handle of
the vb application, not the form of the application. I don't know if the
VB's application have it. but in delphi 7 exist a Application object that
have a internal handle of the entire Delphi's app. because If I pass the
form(vb) handle the delphi form inside dll it always be on top, and I like
that VB's app can change the z-order with dll's form.
Best regards,
Owen.
| |
| Mike D Sutton 2006-03-28, 6:56 pm |
| > I work in VB6 and I have a Delphi Dll that I must pass the main handle of
> the vb application, not the form of the application. I don't know if the
> VB's application have it. but in delphi 7 exist a Application object that
> have a internal handle of the entire Delphi's app. because If I pass the
> form(vb) handle the delphi form inside dll it always be on top, and I like
> that VB's app can change the z-order with dll's form.
Application.Handle in Delphi is an HWND, so in VB you would use the .hWnd property of your main form.
In neither language is this handle a handle to the entire application, but a window handle to the main form.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: Http://EDais.mvps.org/
|
|
|
|
|