473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

shrinking controls

Due to a HD crash, I had to reinstall VS.net 2002. Now
when I build my c# project, the controls on my windows
form shrink. Each time I build, the controls shrink. I
can resize them, but they still shrink.

Anyone have a suggestion as to what the problem is?

Thanks,
phknox
Nov 15 '05 #1
2 3898
phknox,

Can you show the code that is generated that when compiled, displays the
problem?

Also, did you try uninstalling everything then reinstalling everything
(just to make sure it is a clean install)?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"phknox" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Due to a HD crash, I had to reinstall VS.net 2002. Now
when I build my c# project, the controls on my windows
form shrink. Each time I build, the controls shrink. I
can resize them, but they still shrink.

Anyone have a suggestion as to what the problem is?

Thanks,
phknox

Nov 15 '05 #2
-----Original Message
Can you show the code that is generated that when compiled, displays theproblem?

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.Get Object
("cwai.OcxState")));
this.cwai.Size = new
System.Drawing.Size(32, 32);
this.cwai.TabIndex = 17;
this.cwai.AcquiredData += new
AxCWDAQControlsLib._DCWAIEvents_AcquiredDataEventH andler
(this.cwai_AcquiredData);
this.cwai.DAQError += new
AxCWDAQControlsLib._DCWAIEvents_DAQErrorEventHandl er
(this.cwai_DAQError);
this.cwai.DAQWarning += new
AxCWDAQControlsLib._DCWAIEvents_DAQWarningEventHan dler
(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.Get Object
("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.Get Object
("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";

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: willie | last post by:
Hi all: I restored one backup database (7.9 GB mdf) on two diffrent servers. I shrunk them by clicking "Move pages to beginning of file before shrinking". After shrinking, one mdf file is 6.7...
6
by: Jens | last post by:
I have a database file LEAR_Index(yes, it hold index data) from a have have recently removed a bunch of data. It is about 120 Gb, 100Gb of which is not used. I wan´t to shrink the file to lean...
1
by: jeffreyv | last post by:
Hi! I'm studying to have my MCSE 70-228 certification and I'm trying some things with backing up transaction logs and shrinking it. Here's what I do: There is no activity in the database by...
1
by: Mark | last post by:
Hi all, I have a report that prints quotations with images of the stock item if there is an image. images are externally stored. My problem is that when there is an image to display and the...
2
by: John Baker | last post by:
Hi: I have a report that contains a remarks field which is a "memo" format field. I have that field on a single line in the report, and have it given a property of "Can Shrink", in the hope that...
1
by: Keith | last post by:
I have just tried form inheritance for the first time and I am having trouble with the controls shrinking each I build the project on my home computer and growing each time I build on my work...
2
by: William | last post by:
I've been tasked with taking over the support for a client's SQL Server database. I'm not a DBA by profession, I'm a software developer who uses SQL Server as a database designer. The clients...
3
by: Harry_Crow | last post by:
I wanted to change the Non client area height. This was not possible in the existing Form TitleBar. So I set the FormBorderStyle= None and I calculated and introduced the Non Client area myself. So...
0
by: Jerry Mcnealy | last post by:
There is an interesting article on java.net about SOA reusability, Shrinking the Lag between Business and IT: http://today.java.net/pub/a/today/2007/07/24/soa-reusability-shrinking-lag-time.html...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.