{"id":1187,"date":"2009-05-14T22:14:51","date_gmt":"2009-05-14T13:14:51","guid":{"rendered":"http:\/\/gigasmegas.com\/?p=1187"},"modified":"2009-05-14T22:15:45","modified_gmt":"2009-05-14T13:15:45","slug":"vbnet-tips-combobox%e3%81%aeitems%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%97%e3%80%81%e8%a9%b2%e5%bd%93%e3%81%99%e3%82%8bindex%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/gigasmegas.com\/?p=1187","title":{"rendered":"VB.NET Tips Combobox\u306eItems\u30ea\u30b9\u30c8\u3092\u691c\u7d22\u3057\u3001\u8a72\u5f53\u3059\u308bIndex\u3092\u53d6\u5f97\u3059\u308b"},"content":{"rendered":"<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/rokuz.com\/?p=1187');\"  href=\"http:\/\/rokuz.com\/?p=1187\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/05\/snag-0164-400x234.png\" alt=\"Combobox\u306eItems\u30ea\u30b9\u30c8\u3092\u691c\u7d22\" title=\"Combobox\u306eItems\u30ea\u30b9\u30c8\u3092\u691c\u7d22\" width=\"400\" height=\"234\" class=\"alignnone size-medium wp-image-1188\" srcset=\"http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/05\/snag-0164-400x234.png 400w, http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/05\/snag-0164.png 499w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<address>photo by <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.flickr.com\/photos\/flosinski\/');\"  href=\"http:\/\/www.flickr.com\/photos\/flosinski\/\">flosinski<\/a><\/address>\n<p>VB.NET\uff08Visual Basic 2008)\u3067\u3001Combobox\u306eDataSource\u306b\u767b\u9332\u3059\u308b\u3001\u53c8\u306fItems\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u8ffd\u52a0\u3057\u305f\u30ea\u30b9\u30c8\u3092\u767b\u9332\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3001Combobox\u306e\u30ea\u30b9\u30c8\u5185\u306b\u8a72\u5f53\u3059\u308b\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u3001\u30ea\u30b9\u30c8\u5185\u3092\u691c\u7d22\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u3001\u30ea\u30b9\u30c8\u3092For\u6587\u306a\u3069\u3067Combobox\u306eCount\u6570\u3060\u3051\u56de\u3057\u3066\u3001\u8a72\u5f53\u3059\u308b\u3082\u306e\u3092\u691c\u7d22\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304cCombobox\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<dt>ComboBox.FindString \u30e1\u30bd\u30c3\u30c9<\/dt>\n<dd>ComboBox \u5185\u3067\u3001\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3067\u59cb\u307e\u308b\u6700\u521d\u306e\u9805\u76ee\u3092\u691c\u7d22\u3057\u307e\u3059\u3002 <\/dd>\n<p>\u53c8\u306f\u3001<\/p>\n<dt>ComboBox.FindStringExact \u30e1\u30bd\u30c3\u30c9<\/dt>\n<dd>\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3068\u53b3\u5bc6\u306b\u4e00\u81f4\u3059\u308b\u9805\u76ee\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/dd>\n<p>\u3069\u3061\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3082\u8a72\u5f53\u9805\u76ee\u304c\u306a\u3051\u308c\u3070\u3001-1\u3092\u3001\u898b\u3064\u304b\u308c\u3070\u8a72\u5f53Index\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001FindStringExact \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n'\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3001\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u30e1\u30f3\u30d0\u30fc\u3092\u6307\u5b9a\r\n            ComboBox1.DataSource = MyDataSource\r\n            ComboBox1.DisplayMember = &quot;Name&quot;\r\n\r\n           Dim SearchStr as String = &quot;hoge&quot;\r\n           ComboBox1.SelectedIndex = ComboBox1.FindStringExact(SearchStr)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>photo by flosinski VB.NET\uff08Visual Basic 2008)\u3067\u3001Combobox\u306eDataSource\u306b\u767b\u9332\u3059\u308b\u3001\u53c8\u306fItems\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u8ffd\u52a0\u3057\u305f\u30ea\u30b9\u30c8\u3092\u767b\u9332\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002 \u3053\u306e\u3001Com [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[303,25],"tags":[306,380,381,382,254,304],"class_list":["post-1187","post","type-post","status-publish","format-standard","hentry","category-vbnet","category-computer","tag-net","tag-combobox","tag-index","tag-item","tag-tips","tag-vb"],"_links":{"self":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":3,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1191,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions\/1191"}],"wp:attachment":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}