01.
public
partial
class
UserControl1 : UserControl
02.
{
03.
private
System.Windows.Forms.TextBox textBox1;
04.
public
UserControl1()
05.
{
06.
07.
InitializeComponent();
08.
this
.textBox1.Location =
new
System.Drawing.Point(32, 45);
09.
this
.textBox1.Name =
"textBox1"
;
10.
this
.textBox1.Size =
new
System.Drawing.Size(223, 20);
11.
this
.textBox1.TabIndex = 0;
12.
}
13.
private
Boolean _ReadOnly;
14.
[System.ComponentModel.DefaultValue(
true
)]
15.
[System.ComponentModel.Browsable(
true
)]
16.
[System.ComponentModel.Category(
"Behavior"
)]
17.
public
Boolean ReadOnly
18.
{
19.
get
{
return
_ReadOnly; }
20.
set
{ _ReadOnly = value; }
21.
}
22.
23.
private
string
_Path;
24.
[System.ComponentModel.Browsable(
true
)]
25.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
26.
[System.ComponentModel.DefaultValue(@
"C:"
)]
27.
[System.ComponentModel.Category(
"Behavior"
)]
28.
[System.ComponentModel.Description(
"Open Dialog is dispalyed and on success the contents of the Cell is replaced with the new path."
)]
29.
public
string
PathFolder
30.
{
31.
get
{
return
_Path; }
32.
set
{ _Path = value; }
33.
}
34.
35.
}