{"id":2672,"date":"2019-02-26T13:04:25","date_gmt":"2019-02-26T04:04:25","guid":{"rendered":"http:\/\/okamurax.com\/?p=2672"},"modified":"2019-02-26T13:04:25","modified_gmt":"2019-02-26T04:04:25","slug":"c-combobox-%e6%9e%a0%e3%81%ab%e8%89%b2%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=2672","title":{"rendered":"C# ComboBox \u67a0\u306b\u8272\u3092\u3064\u3051\u308b"},"content":{"rendered":"<pre class=\"lang:c# decode:true \">using System.Windows.Forms;\r\nusing System.Drawing;\r\n\r\nnamespace ProductionManagement\r\n{\r\n    class BorderComboBox : ComboBox\r\n    {\r\n        private Color _BorderColor = Color.White;\r\n        private ButtonBorderStyle _BorderStyle = ButtonBorderStyle.None;\r\n\r\n        protected override void WndProc(ref Message m)\r\n        {\r\n            base.WndProc(ref m);\r\n\r\n            if(m.Msg == 0x000F)\r\n            {\r\n                Graphics g = Graphics.FromHwnd(Handle);\r\n                Rectangle b = new Rectangle(0, 0, Width, Height);\r\n                ControlPaint.DrawBorder(g, b, _BorderColor, _BorderStyle);\r\n            }\r\n        }\r\n\r\n        public Color BorderColor\r\n        {\r\n            get { return _BorderColor; }\r\n            set { _BorderColor = value; Invalidate(); }\r\n        }\r\n\r\n        public ButtonBorderStyle BorderStyle\r\n        {\r\n            get { return _BorderStyle; }\r\n            set { _BorderStyle = value; Invalidate(); }\r\n        }\r\n\r\n    }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>using System.Windows.Forms; using System.Drawing; namespace ProductionManagement { class BorderComboBox : Comb &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=2672\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# ComboBox \u67a0\u306b\u8272\u3092\u3064\u3051\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9],"class_list":["post-2672","post","type-post","status-publish","format-standard","hentry","category-1","tag-c-net"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2672"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2672\/revisions"}],"predecessor-version":[{"id":2673,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/2672\/revisions\/2673"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}