[SOLVED] how to close a non modal window
Posted
#1
(In Topic #1138)
Enthusiast

Posted
Enthusiast

I created a sub to find the window and close it
Code
Sub KillLCarsVisual()
Dim D As Window
For Each D In Windows
If d.Name = "FLCARSVisual" Then
d.Close
Endif
Next
End
Posted
Guru

for example
Using
fWindow.Show()
statically to open it should then let you use
fWindow.Close()
But this method for example…
With the above method you will have to use hWin.Close not fWindow.Close but hWin is local to the MakeWin() Function so you would have to use the method you have already come up with.
'
But Then this method should work…
With the above method hWin.Close should work as hWin is a global variable of the open window
1 guest and 0 members have just viewed this.



