I am maker

윈폼,C# 오브젝트를 문자열로 가져오는 방법. 본문

카테고리 없음

윈폼,C# 오브젝트를 문자열로 가져오는 방법.

코딩하는고릴라 2016. 7. 7. 11:35
반응형

//컨트롤을 Dictionary에 더해주고

Dictionary<string, Control> controlDic = new Dictionary<string, Control>();

controlDic.Add("1", new Label());


//사용한다

((Label)controlDic["1"]).Text="오오호오옹ㅇ";

반응형