Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.