Link to home
Start Free TrialLog in
Avatar of Theo Kouwenhoven
Theo KouwenhovenFlag for Netherlands

asked on

Closing a program automatically after use or Load once

Hi Experts,

A VB newbee question :)

From application A I can start application B.
if I click somewhere on application A, B will stay active somewhere behind the window of A.
the next time I start application B, a second instant will be started

What I like is:
The moment I click somewhere outside the form of Application B:
1. it must be closed or
2. I can not click on application A before I close B (like the modal style in forms)
3. if I click a second time, the samen instant of B must be used.

I prefer the first two version because when I close application A I don't need B anymore.

btw it's VB6.0

Thanks,
Murph
Avatar of hes
hes
Flag of United States of America image

In B put in form_load
If App.Previstance Then
  Me.Close
End If
ASKER CERTIFIED SOLUTION
Avatar of hes
hes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial