I am maker

Winform UserControl 속성 설정 본문

윈도우 Program. 윈폼, C#, VisualStudio로 구현./윈폼이 뭐죠?

Winform UserControl 속성 설정

코딩하는고릴라 2016. 6. 30. 13:58
반응형

    public class MyTextBox:TextBox

    {

        [Description("설명임"),Category("모양")] 

        [DefaultValue(1)]//기본값

        public int 내프로퍼티1 { get; set; }


        [Description("숫자형태"), Category("모양")]

        [DefaultValue(typeof(String),"#,###.##")]//기본형식및 값

        public string NumberFormat { get; set; }



반응형