2022-11-20 14:53:17 +00:00
|
|
|
|
Public Class DuWM_WindowContainer
|
|
|
|
|
Public ChildForm As Form
|
|
|
|
|
Public DuWM_PID As Integer
|
|
|
|
|
|
|
|
|
|
Private Sub DuWM_WindowContainer_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
2022-11-21 06:56:13 +00:00
|
|
|
|
DuWM_WMCheck.Start()
|
|
|
|
|
DuWM_ChildSize.Start()
|
2022-11-20 14:53:17 +00:00
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Private Sub DuWM_WMCheck_Tick(sender As Object, e As EventArgs) Handles DuWM_WMCheck.Tick
|
2022-11-21 06:56:13 +00:00
|
|
|
|
If ChildForm.Visible = False Then
|
|
|
|
|
Strings.ProcessID(DuWM_PID) = 0
|
|
|
|
|
Close()
|
|
|
|
|
End If
|
2022-11-20 14:53:17 +00:00
|
|
|
|
If Strings.ProcessID(DuWM_PID) = 0 Then
|
|
|
|
|
Close()
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
2022-11-21 06:56:13 +00:00
|
|
|
|
|
|
|
|
|
Private Sub ChildSize_Tick(sender As Object, e As EventArgs) Handles DuWM_ChildSize.Tick
|
|
|
|
|
ChildForm.Size = DuWM_ContainerPanel.Size
|
|
|
|
|
End Sub
|
2022-11-20 14:53:17 +00:00
|
|
|
|
End Class
|