I am facing a serious issue in this.
I have tried to close & unload a dll using a action button of block syler.it closes after throwing a error message saying "A deleted of invalid class id was used."
I am writing code in vb.net
I tried "Dispose()" to close it from the action button.But failed. :-(
Solved! Go to Solution.
Is the .DLL that you are trying to unload the program that is displaying the block styler dialog? If so, I don't think we expect that to work. The Cancel button should be used for that.
The Block UI Styler is not designed to work that way. You are correct, you can close it with the OK button, or with the Cancel button, but it is not intended to be closed from an action button.
Your other option would be to get rid of both OK and Cancel, and just have a Close button. You can set this in the dialog design/creation tool by setting the "Navigation Style" property to "Close".