Clear CommandLine after commands

#1
How to clear CommandLine after execute a commanda called from VB programatically ...

before calling new command or clicking commandBar button I need to press ESC 3 x to clear command line or I get "Invalid Input" message ...

I tried editor.writemessage(cbCrLf) but nothing occurs.
I tried SendStringToExecute like down but crossHair changes states but still seems not to complete the operations and needs to press Esc

Code: Select all

 Private Sub DetalharToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DetalharToolStripMenuItem.Click
        Me.Hide()

        Try
            Dim M As New Main
            M.Detalhar()

            IntelliCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("^c^c ", True, False, False)

        Catch ex As system.Exception
            IntelliCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(ex.Message)
        End Try


    End Sub
cron