MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




ActiveX Control

This is a discussion on ActiveX Control within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Ok, I have a VB project with several forms that have the mappoint activex control embedded on them... problem is ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ActiveX Control

Ok, I have a VB project with several forms that have the mappoint activex control embedded on them... problem is that it's not guaranteed that the users of my app will have mappoint installed on the pc... I know that I can determine if mappoint is installed by looking in the registry but that doesn't help the fact that if it's not installed then I will get a run time error cause the object is on serveral forms...

Any ideas of how to get around this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-04-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Do your check for mappoint either in a splash screen or sub main.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-04-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,041
Blog Entries: 2
Can you add or remove the control from the forms at run-time?
__________________
~ Now taking orders for MapPoint 2009 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-04-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Sure, this code will add the MapPoint control to form1. (You still need to have the Control added to your project.)

'General Declarations Section
Dim WithEvents MPC As MappointControl

Private Sub Command1_Click()

Set MPC = Controls.Add("Mappoint.Control.9", "MappointControl1", Form1)

MPC.Move 1, 1, Form1.Width - 100, Form1.Height - 100
MPC.Visible = True
Set objMap = MPC.NewMap(geoMapNorthAmerica)

End Sub
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
activex, control


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Re: Keyboard control in mappoint activex control djcapslock MapPoint 2006/2009 Discussion 1 03-10-2005 10:16 AM
Getting [SelectedArea] from an ActiveX control Bug MapPoint 2006/2009 Discussion 1 02-19-2004 10:43 AM
I am trying to build an activeX control using Map.... Anonymous MapPoint 2006/2009 Discussion 1 08-24-2001 05:05 PM
I am using the MapPoint ActiveX control in a VB Ap.... Anonymous MapPoint 2006/2009 Discussion 1 08-24-2001 06:35 AM
How does one get the activeX mappoint control to d.... Anonymous MapPoint 2006/2009 Discussion 1 07-25-2001 06:26 PM


All times are GMT -5. The time now is 10:57 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59