Community
hi. how come revit just hangs everytime i close a modal form using me.dispose() and immediately calling selection.pickpoint after it?
i dont have this problem if the form is modeless.
Thanks!
Me too. I wish I understood why. If I have Visual Studio open, then it jumps to VS after the dispose method. It like it lost focus. Revit is totally hung up at that point.
close a modal form using me.dispose()
Why are you closing dialog with Dispose() method. Is it realy instructed to do so? Shouldn't you call Close() etc. first?
You can asign a value to DialogResult property to close the dialog
me.DialogResult = DialogResult.OK
The if you want to show it again, just call form.ShowDialog().