AnsweredAssumed Answered

Cannot Select Layout Elements Upon Closing Windows Form

Question asked by rfairhur24 Champion on Jan 28, 2013
Latest reply on Jan 30, 2013 by rfairhur24
I have an Add-In that contains a button that launches a Windows Form as a Modal Dialog (ShowDialog).  When I close the form (whether or not I have caused the form to run any code beyond launching itself), I am unable to select any Layout Elements (i.e., Data Frame, Title Text, Scale Bar, North Arrow, Drawn Graphics, etc).  The Layout elements can only be selected again if I press the Layout View menu item again on the View Menu, or switch back and forth between Data View and Layout View.

The form only has Radio Buttons and Cammond Buttons and no code is loaded at start up other than to initialize a module level MxDocument variable.  The Cancel button does a ReleaseComObject of the module level variables and then a Me.Close.  After the Dialog closes itself the start-up add-in button processes Dispose on the form.  I don't know of any way to avoid this behavior.

I am using 10.1 SP1.  The behavoir also occurred when I was running 10.0.  Has anyone else experienced this?  Does anyone have a fix beyond the work around I mentioned?  Thanks.