Tip !!!/C# tip
사용자Control에 속성 만들기
MCNT
2022. 7. 27. 01:26
txtBox라는 이름의 string Properties만들기
using System.Windows.Forms;
namespace MyControl
{
public partial class myControl : UserControl
{
string tBox; // 속성 변수 Properties Value
[Category("txtBox"), Description("explanation")]
public TextBox txtBox
{
get { return tBox; }
set { tBox = value; }
}
public myControl2Ex()
{
InitializeComponent();
}
} //end Class
} // end namespace