String Collection Editor

G

Guest

when the string collection editor gets invoked it opens up a dialog which has
the caption "String Collection Editor", for e.g. as in the Lines property for
a TextBox. Is it possible to change the caption to something else other than
the default one. I know we can create our own CustomUIType editors, but I
dont want to re-invent the wheel, as the functionality provided by the
StringCollectionEditor is all i need, with just my custom Caption in the
Dialog box.
 
G

Guest

I just wrote a simple editor to do this so I can change it as required...This
will give you an example to work from...You can just add a property for the
Form.Text to change it..

****EDITOR***
using System;
using System.Drawing.Design;
using System.Collections.Specialized;
using System.Windows.Forms;
using System.ComponentModel;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEditor.
/// </summary>
public class StringCollectionEditor : UITypeEditor
{
public StringCollectionEditor()
{
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext
context)
{
if (context != null) return UITypeEditorEditStyle.Modal;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (value.GetType() != typeof(StringCollection ) )
{
return value;
}
StringCollectionEntry form
= new StringCollectionEntry ((StringCollection )value);

if (form.ShowDialog() == DialogResult.OK)
{
return form.StringCollection;
}
form.Dispose();

return base.EditValue (context, provider, value);
}
}
}
*****ENTRY DIALOG ******
using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Forms;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEntry.
/// </summary>
public class StringCollectionEntry : System.Windows.Forms.Form
{
public StringCollection StringCollection
{
get
{
StringCollection sc = new StringCollection();
if (richTextBox1 != null && richTextBox1.Lines != null)
{
sc.AddRange(richTextBox1.Lines);
}
return sc;
}
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button okButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public StringCollectionEntry(StringCollection stringCollection)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//Load Collection
if (stringCollection != null)
{
String[] lines = new String[stringCollection.Count];
stringCollection.CopyTo(lines,0);
this.richTextBox1.Lines = lines;
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(StringCollectionEntry));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top
| System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Location = new System.Drawing.Point(8, 8);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(472, 224);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(392, 240);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(288, 240);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 2;
this.okButton.Text = "Ok";
//
// StringCollectionEntry
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 266);
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StringCollectionEntry";
this.Text = "StringCollectionEntry";
this.ResumeLayout(false);
}
#endregion
}
}
 
G

Guest

Mike,

Can you tell me how you envoke the editor you created. I tried your example
as I've been trying to get such an editor for over a week. I invoke it
within my PropertyGrid with the following code but it isn't invoked. The
default String Collection Editor appears each time.

[Description("A test string collection."),
Category(TestCaseStrings.strTestComponent),
Editor(typeof(CheckIt.StringCollectionEntry),
typeof(CheckIt.StringCollectionEditor))]
public StringCollection StrCol
{
get { return this.scoll; }
set { this.scoll = value; }
}


Mike in Paradise said:
I just wrote a simple editor to do this so I can change it as required...This
will give you an example to work from...You can just add a property for the
Form.Text to change it..

****EDITOR***
using System;
using System.Drawing.Design;
using System.Collections.Specialized;
using System.Windows.Forms;
using System.ComponentModel;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEditor.
/// </summary>
public class StringCollectionEditor : UITypeEditor
{
public StringCollectionEditor()
{
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext
context)
{
if (context != null) return UITypeEditorEditStyle.Modal;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (value.GetType() != typeof(StringCollection ) )
{
return value;
}
StringCollectionEntry form
= new StringCollectionEntry ((StringCollection )value);

if (form.ShowDialog() == DialogResult.OK)
{
return form.StringCollection;
}
form.Dispose();

return base.EditValue (context, provider, value);
}
}
}
*****ENTRY DIALOG ******
using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Forms;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEntry.
/// </summary>
public class StringCollectionEntry : System.Windows.Forms.Form
{
public StringCollection StringCollection
{
get
{
StringCollection sc = new StringCollection();
if (richTextBox1 != null && richTextBox1.Lines != null)
{
sc.AddRange(richTextBox1.Lines);
}
return sc;
}
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button okButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public StringCollectionEntry(StringCollection stringCollection)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//Load Collection
if (stringCollection != null)
{
String[] lines = new String[stringCollection.Count];
stringCollection.CopyTo(lines,0);
this.richTextBox1.Lines = lines;
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(StringCollectionEntry));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top
| System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Location = new System.Drawing.Point(8, 8);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(472, 224);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(392, 240);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(288, 240);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 2;
this.okButton.Text = "Ok";
//
// StringCollectionEntry
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 266);
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StringCollectionEntry";
this.Text = "StringCollectionEntry";
this.ResumeLayout(false);
}
#endregion
}
}
 
G

Guest

I tried the typeof parameters reversed (which they should be in my example)
but to no avail.

Steve Teeples said:
Mike,

Can you tell me how you envoke the editor you created. I tried your example
as I've been trying to get such an editor for over a week. I invoke it
within my PropertyGrid with the following code but it isn't invoked. The
default String Collection Editor appears each time.

[Description("A test string collection."),
Category(TestCaseStrings.strTestComponent),
Editor(typeof(CheckIt.StringCollectionEntry),
typeof(CheckIt.StringCollectionEditor))]
public StringCollection StrCol
{
get { return this.scoll; }
set { this.scoll = value; }
}


Mike in Paradise said:
I just wrote a simple editor to do this so I can change it as required...This
will give you an example to work from...You can just add a property for the
Form.Text to change it..

****EDITOR***
using System;
using System.Drawing.Design;
using System.Collections.Specialized;
using System.Windows.Forms;
using System.ComponentModel;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEditor.
/// </summary>
public class StringCollectionEditor : UITypeEditor
{
public StringCollectionEditor()
{
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext
context)
{
if (context != null) return UITypeEditorEditStyle.Modal;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (value.GetType() != typeof(StringCollection ) )
{
return value;
}
StringCollectionEntry form
= new StringCollectionEntry ((StringCollection )value);

if (form.ShowDialog() == DialogResult.OK)
{
return form.StringCollection;
}
form.Dispose();

return base.EditValue (context, provider, value);
}
}
}
*****ENTRY DIALOG ******
using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Forms;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEntry.
/// </summary>
public class StringCollectionEntry : System.Windows.Forms.Form
{
public StringCollection StringCollection
{
get
{
StringCollection sc = new StringCollection();
if (richTextBox1 != null && richTextBox1.Lines != null)
{
sc.AddRange(richTextBox1.Lines);
}
return sc;
}
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button okButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public StringCollectionEntry(StringCollection stringCollection)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//Load Collection
if (stringCollection != null)
{
String[] lines = new String[stringCollection.Count];
stringCollection.CopyTo(lines,0);
this.richTextBox1.Lines = lines;
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(StringCollectionEntry));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top
| System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Location = new System.Drawing.Point(8, 8);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(472, 224);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(392, 240);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(288, 240);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 2;
this.okButton.Text = "Ok";
//
// StringCollectionEntry
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 266);
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StringCollectionEntry";
this.Text = "StringCollectionEntry";
this.ResumeLayout(false);
}
#endregion
}
}
 
G

Guest

[Category("Setup")
,Editor(typeof(Bon.Forms.StringCollectionEditor),typeof(System.Drawing.Design.UITypeEditor))
,DefaultValue(null)
,Browsable(true)]
public String[] ExcludeNames


You MUST use UITypeEditor...

This should work for you....

Steve Teeples said:
I tried the typeof parameters reversed (which they should be in my example)
but to no avail.

Steve Teeples said:
Mike,

Can you tell me how you envoke the editor you created. I tried your example
as I've been trying to get such an editor for over a week. I invoke it
within my PropertyGrid with the following code but it isn't invoked. The
default String Collection Editor appears each time.

[Description("A test string collection."),
Category(TestCaseStrings.strTestComponent),
Editor(typeof(CheckIt.StringCollectionEntry),
typeof(CheckIt.StringCollectionEditor))]
public StringCollection StrCol
{
get { return this.scoll; }
set { this.scoll = value; }
}


Mike in Paradise said:
I just wrote a simple editor to do this so I can change it as required...This
will give you an example to work from...You can just add a property for the
Form.Text to change it..

****EDITOR***
using System;
using System.Drawing.Design;
using System.Collections.Specialized;
using System.Windows.Forms;
using System.ComponentModel;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEditor.
/// </summary>
public class StringCollectionEditor : UITypeEditor
{
public StringCollectionEditor()
{
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext
context)
{
if (context != null) return UITypeEditorEditStyle.Modal;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (value.GetType() != typeof(StringCollection ) )
{
return value;
}
StringCollectionEntry form
= new StringCollectionEntry ((StringCollection )value);

if (form.ShowDialog() == DialogResult.OK)
{
return form.StringCollection;
}
form.Dispose();

return base.EditValue (context, provider, value);
}
}
}
*****ENTRY DIALOG ******
using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Forms;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEntry.
/// </summary>
public class StringCollectionEntry : System.Windows.Forms.Form
{
public StringCollection StringCollection
{
get
{
StringCollection sc = new StringCollection();
if (richTextBox1 != null && richTextBox1.Lines != null)
{
sc.AddRange(richTextBox1.Lines);
}
return sc;
}
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button okButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public StringCollectionEntry(StringCollection stringCollection)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//Load Collection
if (stringCollection != null)
{
String[] lines = new String[stringCollection.Count];
stringCollection.CopyTo(lines,0);
this.richTextBox1.Lines = lines;
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(StringCollectionEntry));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top
| System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Location = new System.Drawing.Point(8, 8);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(472, 224);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(392, 240);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(288, 240);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 2;
this.okButton.Text = "Ok";
//
// StringCollectionEntry
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 266);
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StringCollectionEntry";
this.Text = "StringCollectionEntry";
this.ResumeLayout(false);
}
#endregion
}
}
 
G

Guest

Mike, your suggestion does indeed invoke the editor. After removing the
resource lines it worked just fine. This is exactly what I was needing to
see as an example. Thanks so much!


Mike in Paradise said:
[Category("Setup")
,Editor(typeof(Bon.Forms.StringCollectionEditor),typeof(System.Drawing.Design.UITypeEditor))
,DefaultValue(null)
,Browsable(true)]
public String[] ExcludeNames


You MUST use UITypeEditor...

This should work for you....

Steve Teeples said:
I tried the typeof parameters reversed (which they should be in my example)
but to no avail.

Steve Teeples said:
Mike,

Can you tell me how you envoke the editor you created. I tried your example
as I've been trying to get such an editor for over a week. I invoke it
within my PropertyGrid with the following code but it isn't invoked. The
default String Collection Editor appears each time.

[Description("A test string collection."),
Category(TestCaseStrings.strTestComponent),
Editor(typeof(CheckIt.StringCollectionEntry),
typeof(CheckIt.StringCollectionEditor))]
public StringCollection StrCol
{
get { return this.scoll; }
set { this.scoll = value; }
}


:

I just wrote a simple editor to do this so I can change it as required...This
will give you an example to work from...You can just add a property for the
Form.Text to change it..

****EDITOR***
using System;
using System.Drawing.Design;
using System.Collections.Specialized;
using System.Windows.Forms;
using System.ComponentModel;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEditor.
/// </summary>
public class StringCollectionEditor : UITypeEditor
{
public StringCollectionEditor()
{
}
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext
context)
{
if (context != null) return UITypeEditorEditStyle.Modal;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (value.GetType() != typeof(StringCollection ) )
{
return value;
}
StringCollectionEntry form
= new StringCollectionEntry ((StringCollection )value);

if (form.ShowDialog() == DialogResult.OK)
{
return form.StringCollection;
}
form.Dispose();

return base.EditValue (context, provider, value);
}
}
}
*****ENTRY DIALOG ******
using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Forms;
namespace Bon.Controls
{
/// <summary>
/// Summary description for StringCollectionEntry.
/// </summary>
public class StringCollectionEntry : System.Windows.Forms.Form
{
public StringCollection StringCollection
{
get
{
StringCollection sc = new StringCollection();
if (richTextBox1 != null && richTextBox1.Lines != null)
{
sc.AddRange(richTextBox1.Lines);
}
return sc;
}
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Button okButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public StringCollectionEntry(StringCollection stringCollection)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//Load Collection
if (stringCollection != null)
{
String[] lines = new String[stringCollection.Count];
stringCollection.CopyTo(lines,0);
this.richTextBox1.Lines = lines;
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(StringCollectionEntry));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top
| System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Location = new System.Drawing.Point(8, 8);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(472, 224);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(392, 240);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(288, 240);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 2;
this.okButton.Text = "Ok";
//
// StringCollectionEntry
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 266);
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StringCollectionEntry";
this.Text = "StringCollectionEntry";
this.ResumeLayout(false);
}
#endregion
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top