View Single Post

  #1 (permalink)  
Old 03-22-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Mappoint control problem

Hello, i have a problem with vb.net and mappoint. When i add the control to the form and use this code

Try
AxMappointControl1.NewMap(MapPoint.GeoMapRegion.ge oMapEurope)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Everything works fine and perfect, however, when i make a vb.net application with mutltiple forms which i load in a form with panels and the mappoint control to one of the forms i get the error : object reference not set to an object. An other error i got was mappoint could not load. unknown error. at line AxMappointControl1.NewMap(MapPoint.GeoMapRegion.ge oMapEurope)

Does anyone know how i can use the mappoint control with multiple forms ?

Thanks in advance
Reply With Quote