{"id":105,"date":"2010-02-12T10:02:40","date_gmt":"2010-02-12T08:02:40","guid":{"rendered":"http:\/\/jsiegmund.wordpress.com\/?p=105"},"modified":"2013-04-18T18:48:11","modified_gmt":"2013-04-18T17:48:11","slug":"problem-with-splashscreen-of-windowsformsapplicationbase-not-closing","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2010\/02\/problem-with-splashscreen-of-windowsformsapplicationbase-not-closing\/","title":{"rendered":"Problem with splashscreen of WindowsFormsApplicationBase not closing"},"content":{"rendered":"<p>After cracking my head on this one, I found out what&#8217;s going on and wanted to share it here. I&#8217;ve got a winform app setup and wanted to use a splashscreen to show during loading. I&#8217;m using the WindowsFormsApplicationBase class to do this, which works fine. The SplashScreen appears, but I had the problem that it wouldn&#8217;t close any more. It seems that your MainForm form has to inherit from the Form class, which mine didn&#8217;t. As soon as I changed it back; it worked again. Probably, some internal routine of the WindowsFormsApplicationBase class checks if the instance of MainForm is a Form, which it isn&#8217;t primarily in this case. Offcourse the class which it inherits does\u00a0inherit the Form class, but that doesn&#8217;t change a thing apparantly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After cracking my head on this one, I found out what&#8217;s going on and wanted to share it here. I&#8217;ve got a winform app setup and wanted to use a splashscreen to show during loading. I&#8217;m using the WindowsFormsApplicationBase class to do this, which works fine. The SplashScreen appears, but I had the problem that<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-1H","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/105"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}