{"id":333,"date":"2017-02-05T15:58:21","date_gmt":"2017-02-05T06:58:21","guid":{"rendered":"http:\/\/marius.main.jp\/software\/blog\/?p=333"},"modified":"2021-02-17T02:24:55","modified_gmt":"2021-02-16T17:24:55","slug":"post-333","status":"publish","type":"post","link":"https:\/\/todosoft.net\/blog\/?p=333","title":{"rendered":"\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u3092\u5224\u5b9a\u3059\u308b"},"content":{"rendered":"\n<p>VisualStudio\u306e\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001DesignMode\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308b\u304c\u3001<br>\u7d99\u627f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3084\u30e6\u30fc\u30b6\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u5834\u5408\u3001\u6b63\u3057\u304f\u5024\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002<\/p>\n\n\n\n<p>EndInit\u5f8c\u306b\u5168\u3066\u306e\u89aa\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306eDesignMode\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001<br>\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u306e\u5224\u5b9a\u3092\u884c\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-csharp\"><code class=\"language-csharp\">internal class uctlControl : PictureBox, ISupportInitialize\u3000\/\/ ISupportInitialize\u3092\u7d99\u627f\u3057\u3001EndInit\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3059\u308b\n{\n        \/\/\/ &lt;summary>\n        \/\/\/ Init\u5f8c\u51e6\u7406\n        \/\/\/ &lt;\/summary>\n        public void EndInit()\n        {\n            \/\/ \u81ea\u8eab\u306e\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u3092\u53d6\u5f97\n            bool bolDesignMode = base.DesignMode;\n\n            \/\/ \u89aa\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u518d\u5e30\u53d6\u5f97\n            Control objParent = this.Parent;\n            while (objParent != null)\n            {\n                ISite objSite = objParent.Site;\n                if (objSite != null)\n                    bolDesignMode |= objSite.DesignMode;\n\n                objParent = objParent.Parent;\n            }\n\n            \/\/ \u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u306e\u5834\u5408\u306f\u51e6\u7406\u3092\u629c\u3051\u308b\n            if (bolDesignMode == true)\n                return;\n\n            \/\/ \u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u3067\u306f\u306a\u3044\u3068\u304d\u306b\u884c\u3046\u521d\u671f\u5316\u51e6\u7406\n        }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>VisualStudio\u306e\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001DesignMode\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308b\u304c\u3001\u7d99\u627f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3084\u30e6\u30fc\u30b6\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u5834\u5408\u3001\u6b63\u3057\u304f\u5024\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002 EndInit\u5f8c\u306b\u5168\u3066\u306e\u89aa\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306eDesi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,15],"tags":[97],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-c","category-15","tag-97"],"_links":{"self":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333"}],"version-history":[{"count":2,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions\/824"}],"wp:attachment":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}