There is something wrong here.
I stripped this code to the bare essentials so other variables wouldn't interfere.
To try this example, make a new form with 1 command button
Paste this code in.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
Public Sub Form_Load()
Dim FD As New VB#CommonDialog
FD.ShowOpen True
Set FD = Nothing
End Sub
Public Sub Command1_Click()
Unload Me
End Sub
|
When I exit the program through program control (command button) .. it will not release me to the editor.
It is as if the commondialog box is still keeping the program from fully closing.
When I Exit through the [X] (Windows Close) the program closes properly and it releases me back to the editor.
What am I missing here?