'분류 전체보기'에 해당되는 글 190건

  1. 2011.12.27 WinForm에서 ComboBox에 Value, Key 사용하기(Dictionary사용) 2
C#2011. 12. 27. 10:36


            Dictionary<String, String> risk = new Dictionary<string, string>();
            risk.Add("IN", "옥내");
            risk.Add("OUT", "옥외");

            cbInOut.DataSource = new BindingSource(risk, null);
            cbInOut.DisplayMember = "Value";
            cbInOut.ValueMember = "Key";

Posted by 댓거리사랑