Bruce Wood wrote:
We would need to see the code for the TestModelFileReaderForm 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.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace TestMaker
{
/// <summary>
/// Summary description for TestModelFileReaderForm.
/// </summary>
public class TestModelFileReaderForm : System.Windows.Forms.Form
{
public System.Windows.Forms.TextBox txtModelInfo;
public System.Windows.Forms.Label lbl_ModelInfo;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public TestModelFileReaderForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
And then there's the InitializeComponent() method, that's
autogenerated:
private void InitializeComponent()
{
this.lbl_ModelInfo = new System.Windows.Forms.Label();
this.txtModelInfo = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// lbl_ModelInfo
//
this.lbl_ModelInfo.Location = new System.Drawing.Point(24, 8);
this.lbl_ModelInfo.Name = "lbl_ModelInfo";
this.lbl_ModelInfo.Size = new System.Drawing.Size(464, 16);
this.lbl_ModelInfo.TabIndex = 0;
this.lbl_ModelInfo.Text = "Model Info for ";
//
// txtModelInfo
//
this.txtModelInfo.Location = new System.Drawing.Point(24, 24);
this.txtModelInfo.Multiline = true;
this.txtModelInfo.Name = "txtModelInfo";
this.txtModelInfo.ScrollBars =
System.Windows.Forms.ScrollBars.Vertical;
this.txtModelInfo.Size = new System.Drawing.Size(464, 400);
this.txtModelInfo.TabIndex = 1;
this.txtModelInfo.Text = "";
//
// TestModelFileReaderForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(512, 446);
this.Controls.Add(this.txtModelInfo);
this.Controls.Add(this.lbl_ModelInfo);
this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "TestModelFileReaderForm";
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n;
this.Text = "TestModelFileReaderForm";
this.ResumeLayout(false);
}
#endregion
}