{"id":21239,"date":"2024-09-03T11:00:00","date_gmt":"2024-09-03T02:00:00","guid":{"rendered":"https:\/\/itport.cloud\/?p=21239"},"modified":"2024-09-28T23:00:25","modified_gmt":"2024-09-28T14:00:25","slug":"post-21239","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=21239","title":{"rendered":"\uff08\u7b2c\u4e8c\u56de\uff09C# Windows\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067  \u30e6\u30fc\u30b6\u30fc\u767b\u9332\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#!\">\u524d\u56de\u306e\u304a\u3055\u3089\u3044<\/a><\/li><li><a href=\"#2\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0<\/a><\/li><li><a href=\"#3\">\u5165\u529b\u5236\u5fa1<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1\">\u524d\u56de\u306e\u304a\u3055\u3089\u3044<\/h2>\n\n\n\n<p>\u524d\u56de\u306f\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u5f8c\u3001\u30e9\u30d9\u30eb\u3068\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0\u307e\u3067\u3092\u884c\u3044\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u305d\u306e\u7d9a\u304d\u3067\u3042\u308b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u4f5c\u6210\u304b\u3089\u59cb\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0<\/h2>\n\n\n\n<p>\u5de6\u306b\u8868\u793a\u3057\u3066\u3044\u308b\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u304b\u3089\u300cCheckBox\u300d\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<br>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u305d\u308c\u305e\u308c\u300cMailCheckBox\u300d\u3001\u300c\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-1024x477.png\" alt=\"\" class=\"wp-image-21243\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-1024x477.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-300x140.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-768x357.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-1536x715.png 1536w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-450x209.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324-900x419.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-230324.png 1865w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7d9a\u3051\u3066\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a18\u8f09\u3059\u308b\u6b04\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Label\u3068TextBox\u3092\u8ffd\u52a0\u3057\u305d\u308c\u305e\u308c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br>Label\uff1aName\u300cMailAdressLabel\u300d\uff0cText\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u300d<br>TextBox:Name\u300cMailAdressTextBox\u300d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"848\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155.png\" alt=\"\" class=\"wp-image-21245\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155.png 860w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155-300x296.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155-768x757.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155-325x320.png 325w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232155-649x640.png 649w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u304c\u51fa\u6765\u305f\u3089\u300c\u5b9f\u884c\u300d\u3092\u3057\u3066\u307f\u307e\u3059\u3002<br>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306eONOFF\u304c\u51fa\u6765\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"209\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232736.png\" alt=\"\" class=\"wp-image-21246\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232736.png 426w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-232736-300x147.png 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3\">\u5165\u529b\u5236\u5fa1<\/h2>\n\n\n\n<p>\u73fe\u6642\u70b9\u3067\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u3044\u3064\u3067\u3082\u5165\u529b\u3067\u304d\u308b\u72b6\u614b\u306b\u3042\u308b\u306e\u3067\u3001\u6b21\u306f\u300c\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u305f\u3089<br>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u5236\u5fa1\u3092\u304b\u3051\u3066\u3044\u304d\u307e\u3059\u3002<br>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u96f7\u30de\u30fc\u30af\uff08\u30a4\u30d9\u30f3\u30c8\u30dc\u30bf\u30f3\uff09\u3092\u9078\u629e\u3001\u300cCheckedChanged\u300d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br>\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u30b3\u30fc\u30c9\u753b\u9762\u306b\u5207\u308a\u66ff\u308f\u308a\u3001\u300cMailCheckBox_CheckedChanged\u300d\u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br>\u3053\u3061\u3089\u306e\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u304c\u5909\u308f\u3063\u305f\u969b\u306e\u51e6\u7406\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"241\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-1024x241.png\" alt=\"\" class=\"wp-image-21247\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-1024x241.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-300x71.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-768x181.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-1536x362.png 1536w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-450x106.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347-900x212.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233347.png 1588w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"176\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233749.png\" alt=\"\" class=\"wp-image-21248\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233749.png 737w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233749-300x72.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-233749-450x107.png 450w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<p>\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u5165\u529b\u5236\u5fa1\u3092\u304b\u3051\u3066\u3044\u304d\u307e\u3059\u3002<br>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u5165\u529b\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u5834\u5408\u306f<br>\u300cMailAdressTextBox.Enable = false;\u300d\u3068\u66f8\u304d\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>\u300c\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u300d\u306e\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u304cTrue\u306e\u3068\u304d\u306e\u307f\uff0c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u5165\u529b\u3092\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><br>if(MailCheckBox.Checked)<br>{<br>MailAdressTextBox.Enabled = true;<br>}<br>else<br>{<br>MailAdressTextBox.Enabled = false;<br>}<br>\u3053\u306e\u72b6\u614b\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<br>\u3053\u308c\u3067\u30c1\u30a7\u30c3\u30af\u304cOFF\u306e\u3068\u304d\u306f\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u30b0\u30ec\u30fc\u30a2\u30a6\u30c8\u3068\u306a\u308a\u5165\u529b\u3067\u304d\u306a\u304f\u306a\u308a<br>\u30c1\u30a7\u30c3\u30af\u304cON\u306e\u3068\u304d\u306f\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"175\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234925.png\" alt=\"\" class=\"wp-image-21252\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234925.png 440w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234925-300x119.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"180\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234945.png\" alt=\"\" class=\"wp-image-21253\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234945.png 422w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-234945-300x128.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/figure>\n\n\n\n<p>\u30c1\u30a7\u30c3\u30af\u3092OFF\u306b\u3059\u308b\u3068\u5165\u529b\u304c\u51fa\u6765\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u8d77\u52d5\u6642\u306f\u30c1\u30a7\u30c3\u30af\u304cOFF\u306b\u3082\u95a2\u308f\u3089\u305a\u3001<br>\u5165\u529b\u304c\u51fa\u6765\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3053\u308c\u3067\u306f\u3001\u6b63\u3057\u3044\u5236\u5fa1\u3068\u306f\u8a00\u3048\u306a\u3044\u306e\u3067\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>public UserSaveForm()<br>{<br>InitializeComponent();<br>MailAdressTextBox.Enabled = false;<br>}<br>\u3053\u3061\u3089\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u8d77\u52d5\u6642\u304b\u3089\u6b63\u3057\u304f\u5236\u5fa1\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"174\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-235803.png\" alt=\"\" class=\"wp-image-21254\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-235803.png 420w, https:\/\/itport.cloud\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-02-235803-300x124.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/figure>\n\n\n\n<p>\u305f\u3060\u3001\u3053\u3061\u3089\u306e\u30b3\u30fc\u30c9\u3060\u3068\u4eca\u5f8c\u6539\u4fee\u304c\u3042\u308a\u3001\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u9001\u4fe1\u3059\u308b\u300d\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092<br>\u521d\u671f\u5024\u3067ON\u306b\u3057\u305f\u5834\u5408\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304cON\u306b\u3082\u95a2\u308f\u3089\u305a\u3001<br>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u5165\u529b\u304c\u3067\u304d\u306a\u3044\u72b6\u614b\u3067\u8d77\u52d5\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u4e0a\u8a18\u306e\u554f\u984c\u3092\u89e3\u6d88\u3059\u308b\u306b\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u300cfalse\u300d\u3067\u56fa\u5b9a\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u3053\u3061\u3089\u3082<br>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>public UserSaveForm()<br>{<br>InitializeComponent();<br><br>MailCheckBox.Checked = true;<br>MailCheckBoxChanged();\u3000\u3000\u2190\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059<br>}<br>private void MailCheckBoxChanged()\u3000\u3000\u2190\u65b0\u3057\u3044\u95a2\u6570<br>{<br>if (MailCheckBox.Checked)<br>{<br>MailAdressTextBox.Enabled = true;<br>}<br>else<br>{<br>MailAdressTextBox.Enabled = false;<br>}<br>}<br>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u30b3\u30fc\u30c9\u306b\u4f55\u3089\u304b\u306e\u4fee\u6b63\u304c\u3042\u3063\u305f\u3068\u3057\u3066\u3082\u4e00\u304b\u6240\u306e\u4fee\u6b63\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<br><br>MailCheckBoxChanged\u30e1\u30bd\u30c3\u30c9\u3067\u306fif\u6587\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\uff0c\u3053\u306e\u30b3\u30fc\u30c9\u3092\u3088\u304f\u898b\u308b\u3068\uff0c\u3082\u3046\u5c11\u3057\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30e1\u30fc\u30eb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304cTrue\u306e\u3068\u304d\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u30e9\u30d9\u30eb\u3068\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092True\u306b\u3057\uff0cfalse\u306e\u3068\u304d\u306f\u305d\u308c\u305e\u308c\u3092false\u306b\u3057\u3066\u3044\u308b\u305f\u3081\uff0c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3082\u540c\u3058\u3088\u3046\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<br><br>private void MailCheckBoxChanged()<br>{<br>MailAdressTextBox.Enabled = MailCheckBox.Checked;<br>MailAdressLabel.Enabled = MailCheckBox.Checked;<br>}<\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u524d\u56de\u306e\u304a\u3055\u3089\u3044\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0\u5165\u529b\u5236\u5fa1 \u524d\u56de\u306e\u304a\u3055\u3089\u3044 \u524d\u56de\u306f\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u5f8c\u3001\u30e9\u30d9\u30eb\u3068\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0\u307e\u3067\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u305d\u306e\u7d9a\u304d\u3067\u3042\u308b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u4f5c\u6210\u304b\u3089\u59cb\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u8ffd\u52a0 \u5de6\u306b\u8868\u793a\u3057\u3066\u3044\u308b\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u304b\u3089\u300cCheckBox\u300d\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u305d\u308c\u305e\u308c\u300cMailCheckBox\u300d\u3001\u300c\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002 \u7d9a\u3051\u3066\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a18\u8f09\u3059\u308b\u6b04\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Label\u3068TextBox\u3092\u8ffd\u52a0\u3057\u305d\u308c\u305e\u308c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002Label\uff1aName\u300cMailAdressLabel\u300d\uff0cText\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u300d&hellip;","protected":false},"author":38,"featured_media":21261,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[162],"tags":[169],"class_list":{"0":"post-21239","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-windows","8":"tag-season58"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21239"}],"version-history":[{"count":12,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21239\/revisions"}],"predecessor-version":[{"id":21416,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21239\/revisions\/21416"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/21261"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}