Clear CommandLine after commands

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

            Dim M As New Main

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

        Catch ex As system.Exception
        End Try

    End Sub