MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




ShowFindDialog not quite as modal as it should

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 ...


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

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 03-31-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ShowFindDialog not quite as modal as it should

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 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
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 04-01-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I've found out that the problem occurs when I click anywhere on the parent window and then move my mouse over the child-dialog.
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 04-04-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Yeah, same happen(ed)s with my app.
I did not find the perfect solution.
What I do is: open all dialogs, forms etc. from a button in the main Form.
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 04-04-2003
Junior Member
Yellow Belt
 
Join Date: Jan 2003
Posts: 23
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Well, to be exactly I have my problems with nearly all other child windows, but not with the find dialog (I took my code from the sample...).

Peter
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
modal, showfinddialog


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
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


All times are GMT -5. The time now is 07:00 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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