First, if your dialog box is being shown modally, nothing is going to happen
until it's closed, so do you really want to use a modal dialog?
The command you invoke from your control event handler via
SendStringToExeucte() can access whatever data it needs, from static members
whose values you set just before you invoke the command.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6204854@discussion.autodesk.com...
Tony, help me understand your answer (its been several months since i did
anything to autocad .net api)... I'm seeing this problem in my project, i
have a form with a list box (non-wpf) and in the double click event of the
listbox i wired it up to go to a function that opens a file. I do something
like this: docs = Application.DocumentManager docs.Open(fname, False, "") Of
course like you mention this opens the file but it is not active, and I
understand the reason because the main command that executes my form is not
run out of a session but out of a document. So i'll make another command,
that runs in session and have it open a document, right? but how do i pass
it the filename? i've never done that... so in my command: _ Public Sub
OpenDocumentCmd() End Sub Can i just pass to the sub? Thanks, Viktor.