Results 1 to 2 of 2

Thread: Communication between forms

  1. #1

    Thread Starter
    Join Date
    Oct 2000
    Hooglede (belgium)


    I've made a shell-program in outlookstyle.
    From within that shell I open other programs that
    are of type ActiveX DLL with form.
    The shell is an exe file.
    Now I want to communicate from within my ActiveX DLL with
    the shell.
    More specific, I want, when the ActiveX DLL gets the focus,
    that there is a method triggered in the shell.

    Is there somebody who could help me.


  2. #2
    Use FindWindowEx to find your previous App
    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Private Sub Form_GotFocus()
       Dim APP_HWND As Long
       'If you have VB6, change ThunderRT5Form to ThunderRT6Form
       APP_HWND = FindWindowEx(0, 0, "ThunderRT5Form", "App Title")
       If APP_HWND <> 0 Then
           'Do a method here
       End If
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width