closing window

Hi,
From a form I open the calc.exe using a popup menu.After making the calculations I enter the feedback into the form.Now the focus is in the form.From this form how can I close the calce.exe or any othe file for that matter.I open calc using shell function.

Thanks in advance.

Rejish.

Comments

  • : Hi,
    : From a form I open the calc.exe using a popup menu.After making the calculations I enter the feedback into the form.Now the focus is in the form.From this form how can I close the calce.exe or any othe file for that matter.I open calc using shell function.
    :
    : Thanks in advance.
    :
    : Rejish.
    :
    Hi, if you know the tittle of the window...
    [code]
    Dim hWnd As Long
    hWnd = FindWindow(vbNullString, "Calculator)
    If hWnd <> 0 Then PostMessage hWnd, WM_QUIT, 0, 0[/code]

    PavlinII
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion