Community of VE/MapPoint Users and Developers
This is a discussion on ShowImportWizard not showing progress within the Development forums, part of the MapPoint 2006/2009 Discussion category; Morning all I've written an add-in that imports quite large datasets from text files using the Datasets.ShowImportWizard. However, it's not ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| ShowImportWizard not showing progress I've written an add-in that imports quite large datasets from text files using the Datasets.ShowImportWizard. However, it's not displaying the progress dialog that you get when using it through the interface. My code is simply: Does anyone know why this is, and how I can fix it? Many thanks Mike |
| |||
| Re: ShowImportWizard not showing progress
Managed to solve this, after a fashion. Since the import progress dialog is not displayed, I thought that I might display an animated form to show that something was happening, and then run the import on a thread. This failed. However, a quick look at Multi-threading in an add-in? let me know that all calls to Mappoint must be on the originating thread. So, I ended up with the following. Code: Public Class DoProgress
Private fb As frmBusy
Public Sub DisplayImportForm()
If fb Is Nothing Then fb = New frmBusy
fb.ShowDialog()
fb.Dispose()
End Sub
End Class
Then, when loading the data, the code is simply: Code: Dim cProgress As New DoProgress Dim tProgress As New System.Threading.Thread(AddressOf cProgress.DisplayImportForm) tProgress.Start() dsNew = TheMap.DataSets.ImportData(strFilename, , MapPoint.GeoCountry.geoCountryUnitedKingdom, MapPoint.GeoDelimiter.geoDelimiterComma, 0) tProgress.Abort() |
| |||
| Re: ShowImportWizard not showing progress
Hi, thanks for feedback. it sure helps others.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| progress, showimportwizard, showing |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 12-12-2007 09:53 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| showing as webmap | stewart | MapPoint 2006/2009 Discussion | 7 | 08-16-2007 11:30 AM |
| Showimportwizard ..no select type of map | mmartin | MapPoint 2006/2009 Discussion | 2 | 05-18-2007 06:18 AM |
| Optimize Progress Bar | Metod | MapPoint 2006/2009 Discussion | 15 | 11-16-2005 01:13 PM |
| Showing all MSA boundaries on USA map | Anonymous | MapPoint 2006/2009 Discussion | 0 | 05-18-2003 04:51 PM |
| I need to a map showing only my state with the nam.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-04-2002 01:09 PM |