Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
HideoYamada
in reply to: bshbsh

Hello bshbsh,

 

I have not understood exactly what is you problem.

I made a dialog.

dialog.PNG

 

The code of this dialog is here :

Private StopRequired As Boolean

Private Sub StartButton_Click()
    StopRequired = False
    Dim lastTime As String
    
CloseButton.Enabled = False
While Not StopRequired DoEvents ' Do someting If lastTime <> Time Then lastTime = Time Label1.Caption = lastTime End If Wend

CloseButton.Enabled = True End Sub Private Sub StopButton_Click() StopRequired = True End Sub Private Sub CloseButton_Click() Me.Hide End Sub

And show the dialog as follows :

Sub test()
    UserForm1.Show
End Sub

The dialog is always in front of Inventor application window, and user cannot access Inventor application window.

 

Something conditions are different?

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp