Community of VE/MapPoint Users and Developers
This is a discussion on ShowFindDialog not quite as modal as it should within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I've created a C# winform that shows the ShowFindDialog-dialog: objMap.ShowFindDialog( Address, new MapPoint.GeoFindState(),(int)this.Handle, true); However, if I click the ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| ShowFindDialog not quite as modal as it should I've created a C# winform that shows the ShowFindDialog-dialog: objMap.ShowFindDialog( Address, new MapPoint.GeoFindState(),(int)this.Handle, true); However, if I click the mouse on the parent form a couple of times (like 15 times, fast), one click is caught by that Form and the code after this line is executed whilst the dialog is still open. This is obviously very bad, and causes exceptions later in the code. Has anybody experienced similar problems and perhaps a work around for this? Loek |
| |||
|
Guys: First suggestion: before calling Find dialog, disable the parent window and enter a dead loop monitoring the dialog window appearance/disapearance (use WinAPI), then enable the parent. Better way is to take MapPoint 2002 Find Dialog VB sample from http://msdn.microsoft.com/library/en...ml/mapfind.asp and customize it the way you like. You can make it truly modal/modeless that way - whatever you want. The example is done in VB, I don't think it is too difficult to redo it in C#, though. Sergiy |
![]() |
| Tags |
| modal, showfinddialog |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with ShowFindDialog | Anonymous | MapPoint 2006/2009 Discussion | 9 | 03-20-2007 09:31 AM |
| Complete adress, when using ShowFindDialog? | Jarun | MapPoint 2006/2009 Discussion | 3 | 04-11-2005 02:31 PM |
| How do I make a MapPoint COM+ AddIn form non modal? | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-26-2003 09:20 AM |
| How do I make a MapPoint COM+ AddIn form non modal? | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-26-2003 09:16 AM |
| How do I make a MapPoint COM+ AddIn form non modal.... | Anonymous | MapPoint 2006/2009 Discussion | 3 | 05-23-2002 01:08 AM |