Mark I think you're going about this the wrong way.
To get MapInfo to send output to the screen when running as an OLE server you need to follow the steps in the UG - or nick one of the samples that comes with MapBasic. a) reparent MapInfo to your form b) SetNextDocument to a control - usually a picturebox - when building a map. You can then tell MapInfo to run your mbx - to control the visibility of the map you just switch your picture box visibility. You CAN set the MapInfo object to be visible by itself, which I do when debugging sometimes, by issuing oMap.visible = true. ITs quite useful but a) Appears in its own window b) Has all the MapInfo menu controls allowing uncontrolled access to the map tables c) You can't see the map which has been reparented ie the one on the form (VB in our case) d) If they close it down you're knacked Letting any users loose on it is asking for trouble. HTH Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Mark Williamson [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 12:42 To: [EMAIL PROTECTED] Subject: MI-L OLE integrated mapping Hi Im using integrated mapping in my application. I want to enable the user to run a mapbasic program (no problem) but I want mapinfo to become visible when it runs the mbx. I think the trouble is that mapinfo is running in the background all the time and I cant finda way of making it visible? Any suggestions? How would I make it disapear also. Thanks Mark ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
