Bruce Wood wrote:
We would need to see the code for the TestModelFileRe aderForm class.
Oh. Ok. I think that code is just what VS came up with after I drew the
form in Designer, but here ya go:
using System;
using System.Drawing;
using System.Collecti ons;
using System.Componen tModel;
using System.Windows. Forms;
namespace TestMaker
{
/// <summary>
/// Summary description for TestModelFileRe aderForm.
/// </summary>
public class TestModelFileRe aderForm : System.Windows. Forms.Form
{
public System.Windows. Forms.TextBox txtModelInfo;
public System.Windows. Forms.Label lbl_ModelInfo;
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.Containe r components = null;
public TestModelFileRe aderForm()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();
//
// TODO: Add any constructor code after InitializeCompo nent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Disp ose();
}
}
base.Dispose( disposing );
}
And then there's the InitializeCompo nent() method, that's
autogenerated:
private void InitializeCompo nent()
{
this.lbl_ModelI nfo = new System.Windows. Forms.Label();
this.txtModelIn fo = new System.Windows. Forms.TextBox() ;
this.SuspendLay out();
//
// lbl_ModelInfo
//
this.lbl_ModelI nfo.Location = new System.Drawing. Point(24, 8);
this.lbl_ModelI nfo.Name = "lbl_ModelInfo" ;
this.lbl_ModelI nfo.Size = new System.Drawing. Size(464, 16);
this.lbl_ModelI nfo.TabIndex = 0;
this.lbl_ModelI nfo.Text = "Model Info for ";
//
// txtModelInfo
//
this.txtModelIn fo.Location = new System.Drawing. Point(24, 24);
this.txtModelIn fo.Multiline = true;
this.txtModelIn fo.Name = "txtModelIn fo";
this.txtModelIn fo.ScrollBars =
System.Windows. Forms.ScrollBar s.Vertical;
this.txtModelIn fo.Size = new System.Drawing. Size(464, 400);
this.txtModelIn fo.TabIndex = 1;
this.txtModelIn fo.Text = "";
//
// TestModelFileRe aderForm
//
this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
this.ClientSize = new System.Drawing. Size(512, 446);
this.Controls.A dd(this.txtMode lInfo);
this.Controls.A dd(this.lbl_Mod elInfo);
this.FormBorder Style =
System.Windows. Forms.FormBorde rStyle.FixedDia log;
this.Name = "TestModelFileR eaderForm";
this.StartPosit ion =
System.Windows. Forms.FormStart Position.Center Screen;
this.Text = "TestModelFileR eaderForm";
this.ResumeLayo ut(false);
}
#endregion
}