For example, to disable a form's close button on loading:
And to re-enable it later:
- PrivateSub Form_Load()
- EnableCloseButton me.hWnd, false
- End Sub
- private Sub Command1_Click()
- EnableCloseButton me.hWnd, true
- End Sub
And to re-enable it later:
- PrivateSub Form_Load()
- EnableCloseButton me.hWnd, false
- End Sub
- private Sub Command1_Click()
- EnableCloseButton me.hWnd, true
- End Sub