Take the 2-minute tour ×

How to close visual basic application from mapinfo using mapbasic? The visual basic application was ran using - Run Program

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The Run Program command in MapBasic is a fire and forgot method, this means that it will lauch the application and the continue on with your MapBasic app logic. MapBasic has no knowledge of the state of the third party app or control over it.

My suggestions would be.

  • If stuck on a older version (<9.5) of MapInfo you will need to create a C++ dll with a form and call that from MapBasic so you have more control.
  • If you have anything over 9.5 you can create a form in .NET and open that from MapBasic as you would a normal MapBasic dialog giving you more control over the form and its state.
share|improve this answer
how is it possible to open .net form from mapbasic without using Run Program command!! –  kinkajou Nov 2 '11 at 13:42
Which version of MapInfo/MapBasic are you running? –  Nathan W Nov 2 '11 at 22:10

Your Answer


