-----Original Message
Can you show the code that is generated that when compiled, displays the
problem?
Below is a small part of the designer generated code. It
only does this on one form in my project. This particular
form inherits from another form. The parent form has 4
controls and they do not resize on the child form when I
build; only the controls I added to the child form
resize.
private void InitializeComponent()
{
System.Resources.ResourceManager
resources = new System.Resources.ResourceManager(typeof
(BearingForm));
this.cwai = new
AxCWDAQControlsLib.AxCWAI();
this.graph = new
AxCWUIControlsLib.AxCWGraph();
this.collectDataButton = new
System.Windows.Forms.Button();
this.stopCollectButton = new
System.Windows.Forms.Button();
this.daqTool = new
AxCWDAQControlsLib.AxCWDAQTools();
this.resetButton = new
System.Windows.Forms.Button();
this.scansTextBox = new
System.Windows.Forms.TextBox();
this.frequencyTextBox = new
System.Windows.Forms.TextBox();
this.bufferTextBox = new
System.Windows.Forms.TextBox();
this.scansLabel = new
System.Windows.Forms.Label();
this.frequencyLabel = new
System.Windows.Forms.Label();
this.bufferLabel = new
System.Windows.Forms.Label();
this.parametersGroupBox = new
System.Windows.Forms.GroupBox();
this.analyzeButton = new
System.Windows.Forms.Button();
this.cwao = new
AxCWDAQControlsLib.AxCWAO();
this.graphProx = new
AxCWUIControlsLib.AxCWGraph();
this.modeCheckBox = new
System.Windows.Forms.CheckBox();
this.modeGroupBox = new
System.Windows.Forms.GroupBox();
this.freqEncoderLabel = new
System.Windows.Forms.Label();
this.freqEncoderUpDown = new
System.Windows.Forms.NumericUpDown();
this.freqHomeLabel = new
System.Windows.Forms.Label();
this.freqHomeUpDown = new
System.Windows.Forms.NumericUpDown();
this.cwarray = new
AxCWAnalysisControlsLib.AxCWArray();
this.currentGroupBox = new
System.Windows.Forms.GroupBox();
this.lengthLabel = new
System.Windows.Forms.Label();
this.lengthUpDown = new
System.Windows.Forms.NumericUpDown();
this.currentXMaxLabel = new
System.Windows.Forms.Label();
this.currentXMaxUpDown = new
System.Windows.Forms.NumericUpDown();
this.currentXMinLabel = new
System.Windows.Forms.Label();
this.currentXMinUpDown = new
System.Windows.Forms.NumericUpDown();
this.cwdsp = new
AxCWAnalysisControlsLib.AxCWDSP();
this.mainMenu1 = new
System.Windows.Forms.MainMenu();
this.fileItem = new
System.Windows.Forms.MenuItem();
this.openItem = new
System.Windows.Forms.MenuItem();
this.cwserial = new
AxCWInstrumentControlLib.AxCWSerial();
this.peakGroupBox = new
System.Windows.Forms.GroupBox();
this.homeHighCheckBox = new
System.Windows.Forms.CheckBox();
this.encoderLabel = new
System.Windows.Forms.Label();
this.encoderUpDown = new
System.Windows.Forms.NumericUpDown();
this.homeLabel = new
System.Windows.Forms.Label();
this.homeUpDown = new
System.Windows.Forms.NumericUpDown();
this.datatypeGroupBox = new
System.Windows.Forms.GroupBox();
this.velocityRadioButton = new
System.Windows.Forms.RadioButton();
this.currentRadioButton = new
System.Windows.Forms.RadioButton();
((System.ComponentModel.ISupportInitialize)
(this.cwai)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.graph)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.daqTool)).BeginInit();
this.parametersGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)
(this.cwao)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.graphProx)).BeginInit();
this.modeGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)
(this.freqEncoderUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.freqHomeUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.cwarray)).BeginInit();
this.currentGroupBox.SuspendLayout
();
((System.ComponentModel.ISupportInitialize)
(this.lengthUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.currentXMaxUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.currentXMinUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.cwdsp)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.cwserial)).BeginInit();
this.peakGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)
(this.encoderUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)
(this.homeUpDown)).BeginInit();
this.datatypeGroupBox.SuspendLayout
();
this.SuspendLayout();
//
// cwai
//
this.cwai.Enabled = true;
this.cwai.Location = new
System.Drawing.Point(5, 46);
this.cwai.Name = "cwai";
this.cwai.OcxState =
((System.Windows.Forms.AxHost.State)(resources.GetObject
("cwai.OcxState")));
this.cwai.Size = new
System.Drawing.Size(32, 32);
this.cwai.TabIndex = 17;
this.cwai.AcquiredData += new
AxCWDAQControlsLib._DCWAIEvents_AcquiredDataEventHandler
(this.cwai_AcquiredData);
this.cwai.DAQError += new
AxCWDAQControlsLib._DCWAIEvents_DAQErrorEventHandler
(this.cwai_DAQError);
this.cwai.DAQWarning += new
AxCWDAQControlsLib._DCWAIEvents_DAQWarningEventHandler
(this.cwai_DAQWarning);
//
// graph
//
this.graph.Location = new
System.Drawing.Point(329, 8);
this.graph.Name = "graph";
this.graph.OcxState =
((System.Windows.Forms.AxHost.State)(resources.GetObject
("graph.OcxState")));
this.graph.Size = new
System.Drawing.Size(271, 157);
this.graph.TabIndex = 18;
//
// collectDataButton
//
this.collectDataButton.Location =
new System.Drawing.Point(24, 103);
this.collectDataButton.Name
= "collectDataButton";
this.collectDataButton.Size = new
System.Drawing.Size(38, 25);
this.collectDataButton.TabIndex =
19;
this.collectDataButton.Text
= "Start Collecting";
this.collectDataButton.Click +=
new System.EventHandler(this.collectDataButton_Click);
//
// stopCollectButton
//
this.stopCollectButton.Enabled =
false;
this.stopCollectButton.Location =
new System.Drawing.Point(66, 103);
this.stopCollectButton.Name
= "stopCollectButton";
this.stopCollectButton.Size = new
System.Drawing.Size(38, 25);
this.stopCollectButton.TabIndex =
20;
this.stopCollectButton.Text
= "Stop Collecting";
this.stopCollectButton.Click +=
new System.EventHandler(this.stopCollectButton_Click);
//
// daqTool
//
this.daqTool.Enabled = true;
this.daqTool.Location = new
System.Drawing.Point(24, 46);
this.daqTool.Name = "daqTool";
this.daqTool.OcxState =
((System.Windows.Forms.AxHost.State)(resources.GetObject
("daqTool.OcxState")));
this.daqTool.Size = new
System.Drawing.Size(32, 32);
this.daqTool.TabIndex = 22;
//
// resetButton
//
this.resetButton.Location = new
System.Drawing.Point(43, 72);
this.resetButton.Name
= "resetButton";
this.resetButton.Size = new
System.Drawing.Size(39, 21);
this.resetButton.TabIndex = 23;
this.resetButton.Text = "Reset";
this.resetButton.Click += new
System.EventHandler(this.resetButton_Click);
//
// scansTextBox
//
this.scansTextBox.Location = new
System.Drawing.Point(72, 16);
this.scansTextBox.Name
= "scansTextBox";
this.scansTextBox.Size = new
System.Drawing.Size(49, 20);
this.scansTextBox.TabIndex = 24;
this.scansTextBox.Text = "500";
//
// frequencyTextBox
//
this.frequencyTextBox.Location =
new System.Drawing.Point(72, 36);
this.frequencyTextBox.Name
= "frequencyTextBox";
this.frequencyTextBox.Size = new
System.Drawing.Size(49, 20);
this.frequencyTextBox.TabIndex =
25;
this.frequencyTextBox.Text
= "2000";