Message 1 of 4
SendStringToExecute
Not applicable
07-08-2009
12:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an autocad palette with a button on it. The following code is under the click event for the button
{code}
AcApp.DocumentManager.MdiActiveDocument.SendStringToExecute(String.Format("NameOfCommand{0}", vbLf), False, False, False)
{code}
My problem is that this line is not run until the mouse is moved in the drawing space. I want the command to run as soon as the button is clicked.
{code}
AcApp.DocumentManager.MdiActiveDocument.SendStringToExecute(String.Format("NameOfCommand{0}", vbLf), False, False, False)
{code}
My problem is that this line is not run until the mouse is moved in the drawing space. I want the command to run as soon as the button is clicked.