Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

ShowFindDialog not quite as modal as it should

This is a discussion on ShowFindDialog not quite as modal as it should within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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.

  3. #3
    blackmap is offline 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.

  4. #4
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    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

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with ShowFindDialog
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 03-20-2007, 08:31 AM
  2. Complete adress, when using ShowFindDialog?
    By Jarun in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-11-2005, 01:31 PM
  3. How do I make a MapPoint COM+ AddIn form non modal?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-26-2003, 08:20 AM
  4. How do I make a MapPoint COM+ AddIn form non modal?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-26-2003, 08:16 AM
  5. How do I make a MapPoint COM+ AddIn form non modal....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 05-23-2002, 12:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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