User Tools

Site Tools


map_suite_desktop_for_winforms_miscellaneous_samples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

map_suite_desktop_for_winforms_miscellaneous_samples [2020/03/08 06:37]
map_suite_desktop_for_winforms_miscellaneous_samples [2020/03/08 06:37] (current)
Line 1: Line 1:
 +====== WinForms Samples ======
 +
 +==== Draw Custom Exception Sample for WinForms ====
 +
 +This sample shows how you can suppress and draw exceptions in desktop overlays instead of throwing them. There is a little-known feature in the Map Suite Desktop Edition Overlay class that allows you to draw an exception in the event an exception is thrown during the drawing process. We have a default image we draw in this case; however, you can override this using the DrawExceptionCore method and draw whatever you want. By default we always throw expections, but to start drawing them you can use the Overlay.DrawExceptionMode property.
 +
 +Please refer to [Wiki](http://​wiki.thinkgeo.com/​wiki/​map_suite_desktop_for_winforms) for the details.
 +
 +{{https://​github.com/​ThinkGeo/​DrawCustomExceptionSample-ForWinForms/​raw/​master/​Screenshot.gif?​500|Screenshot}}
 +
 +
 +[[https://​github.com/​ThinkGeo/​DrawCustomExceptionSample-ForWinForms| View this sample on Github]]
 +
  
map_suite_desktop_for_winforms_miscellaneous_samples.txt ยท Last modified: 2020/03/08 06:37 (external edit)