Here is the code in a form that is shown vbModal. See the problem in the comments: [pre]Private Sub Button_Click() Me.Hide AcadDoc.Utility.GetEntity SelectedObject, Point, vbCr + "Select a polyline: " Me.Show vbModal ' code down here does not get executed until the form is closed ' so I have to move it above the Me.Show line End Sub[/pre] Why this problem with the location of the code? More info... Have a dialog in a VB6 DLL that works fine in 2004/2005. In testing with AutoCAD 2006 an error message says that the form must be modal. So I made the form modal if the version# is > 16.1 so it can still be non-modal for 2004/2005. When I made it modal I saw the problem listed above. (since the 2006 beta is over and the NDA is released I hope it is ok to talk about this)