473,848 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3930
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.co m

"phknox" <an*******@disc ussions.microso ft.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 InitializeCompo nent()
{
System.Resource s.ResourceManag er
resources = new System.Resource s.ResourceManag er(typeof
(BearingForm));
this.cwai = new
AxCWDAQControls Lib.AxCWAI();
this.graph = new
AxCWUIControlsL ib.AxCWGraph();
this.collectDat aButton = new
System.Windows. Forms.Button();
this.stopCollec tButton = new
System.Windows. Forms.Button();
this.daqTool = new
AxCWDAQControls Lib.AxCWDAQTool s();
this.resetButto n = new
System.Windows. Forms.Button();
this.scansTextB ox = new
System.Windows. Forms.TextBox() ;
this.frequencyT extBox = new
System.Windows. Forms.TextBox() ;
this.bufferText Box = new
System.Windows. Forms.TextBox() ;
this.scansLabel = new
System.Windows. Forms.Label();
this.frequencyL abel = new
System.Windows. Forms.Label();
this.bufferLabe l = new
System.Windows. Forms.Label();
this.parameters GroupBox = new
System.Windows. Forms.GroupBox( );
this.analyzeBut ton = new
System.Windows. Forms.Button();
this.cwao = new
AxCWDAQControls Lib.AxCWAO();
this.graphProx = new
AxCWUIControlsL ib.AxCWGraph();
this.modeCheckB ox = new
System.Windows. Forms.CheckBox( );
this.modeGroupB ox = new
System.Windows. Forms.GroupBox( );
this.freqEncode rLabel = new
System.Windows. Forms.Label();
this.freqEncode rUpDown = new
System.Windows. Forms.NumericUp Down();
this.freqHomeLa bel = new
System.Windows. Forms.Label();
this.freqHomeUp Down = new
System.Windows. Forms.NumericUp Down();
this.cwarray = new
AxCWAnalysisCon trolsLib.AxCWAr ray();
this.currentGro upBox = new
System.Windows. Forms.GroupBox( );
this.lengthLabe l = new
System.Windows. Forms.Label();
this.lengthUpDo wn = new
System.Windows. Forms.NumericUp Down();
this.currentXMa xLabel = new
System.Windows. Forms.Label();
this.currentXMa xUpDown = new
System.Windows. Forms.NumericUp Down();
this.currentXMi nLabel = new
System.Windows. Forms.Label();
this.currentXMi nUpDown = new
System.Windows. Forms.NumericUp Down();
this.cwdsp = new
AxCWAnalysisCon trolsLib.AxCWDS P();
this.mainMenu1 = new
System.Windows. Forms.MainMenu( );
this.fileItem = new
System.Windows. Forms.MenuItem( );
this.openItem = new
System.Windows. Forms.MenuItem( );
this.cwserial = new
AxCWInstrumentC ontrolLib.AxCWS erial();
this.peakGroupB ox = new
System.Windows. Forms.GroupBox( );
this.homeHighCh eckBox = new
System.Windows. Forms.CheckBox( );
this.encoderLab el = new
System.Windows. Forms.Label();
this.encoderUpD own = new
System.Windows. Forms.NumericUp Down();
this.homeLabel = new
System.Windows. Forms.Label();
this.homeUpDown = new
System.Windows. Forms.NumericUp Down();
this.datatypeGr oupBox = new
System.Windows. Forms.GroupBox( );
this.velocityRa dioButton = new
System.Windows. Forms.RadioButt on();
this.currentRad ioButton = new
System.Windows. Forms.RadioButt on();

((System.Compon entModel.ISuppo rtInitialize)
(this.cwai)).Be ginInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.graph)).B eginInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.daqTool)) .BeginInit();

this.parameters GroupBox.Suspen dLayout();

((System.Compon entModel.ISuppo rtInitialize)
(this.cwao)).Be ginInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.graphProx )).BeginInit();
this.modeGroupB ox.SuspendLayou t();

((System.Compon entModel.ISuppo rtInitialize)
(this.freqEncod erUpDown)).Begi nInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.freqHomeU pDown)).BeginIn it();

((System.Compon entModel.ISuppo rtInitialize)
(this.cwarray)) .BeginInit();
this.currentGro upBox.SuspendLa yout
();

((System.Compon entModel.ISuppo rtInitialize)
(this.lengthUpD own)).BeginInit ();

((System.Compon entModel.ISuppo rtInitialize)
(this.currentXM axUpDown)).Begi nInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.currentXM inUpDown)).Begi nInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.cwdsp)).B eginInit();

((System.Compon entModel.ISuppo rtInitialize)
(this.cwserial) ).BeginInit();
this.peakGroupB ox.SuspendLayou t();

((System.Compon entModel.ISuppo rtInitialize)
(this.encoderUp Down)).BeginIni t();

((System.Compon entModel.ISuppo rtInitialize)
(this.homeUpDow n)).BeginInit() ;
this.datatypeGr oupBox.SuspendL ayout
();
this.SuspendLay out();
//
// cwai
//
this.cwai.Enabl ed = true;
this.cwai.Locat ion = new
System.Drawing. Point(5, 46);
this.cwai.Name = "cwai";
this.cwai.OcxSt ate =
((System.Window s.Forms.AxHost. State)(resource s.GetObject
("cwai.OcxState ")));
this.cwai.Size = new
System.Drawing. Size(32, 32);
this.cwai.TabIn dex = 17;
this.cwai.Acqui redData += new
AxCWDAQControls Lib._DCWAIEvent s_AcquiredDataE ventHandler
(this.cwai_Acqu iredData);
this.cwai.DAQEr ror += new
AxCWDAQControls Lib._DCWAIEvent s_DAQErrorEvent Handler
(this.cwai_DAQE rror);
this.cwai.DAQWa rning += new
AxCWDAQControls Lib._DCWAIEvent s_DAQWarningEve ntHandler
(this.cwai_DAQW arning);
//
// graph
//
this.graph.Loca tion = new
System.Drawing. Point(329, 8);
this.graph.Name = "graph";
this.graph.OcxS tate =
((System.Window s.Forms.AxHost. State)(resource s.GetObject
("graph.OcxStat e")));
this.graph.Size = new
System.Drawing. Size(271, 157);
this.graph.TabI ndex = 18;
//
// collectDataButt on
//
this.collectDat aButton.Locatio n =
new System.Drawing. Point(24, 103);
this.collectDat aButton.Name
= "collectDataBut ton";
this.collectDat aButton.Size = new
System.Drawing. Size(38, 25);
this.collectDat aButton.TabInde x =
19;
this.collectDat aButton.Text
= "Start Collecting";
this.collectDat aButton.Click +=
new System.EventHan dler(this.colle ctDataButton_Cl ick);
//
// stopCollectButt on
//
this.stopCollec tButton.Enabled =
false;
this.stopCollec tButton.Locatio n =
new System.Drawing. Point(66, 103);
this.stopCollec tButton.Name
= "stopCollectBut ton";
this.stopCollec tButton.Size = new
System.Drawing. Size(38, 25);
this.stopCollec tButton.TabInde x =
20;
this.stopCollec tButton.Text
= "Stop Collecting";
this.stopCollec tButton.Click +=
new System.EventHan dler(this.stopC ollectButton_Cl ick);
//
// daqTool
//
this.daqTool.En abled = true;
this.daqTool.Lo cation = new
System.Drawing. Point(24, 46);
this.daqTool.Na me = "daqTool";
this.daqTool.Oc xState =
((System.Window s.Forms.AxHost. State)(resource s.GetObject
("daqTool.OcxSt ate")));
this.daqTool.Si ze = new
System.Drawing. Size(32, 32);
this.daqTool.Ta bIndex = 22;
//
// resetButton
//
this.resetButto n.Location = new
System.Drawing. Point(43, 72);
this.resetButto n.Name
= "resetButto n";
this.resetButto n.Size = new
System.Drawing. Size(39, 21);
this.resetButto n.TabIndex = 23;
this.resetButto n.Text = "Reset";
this.resetButto n.Click += new
System.EventHan dler(this.reset Button_Click);
//
// scansTextBox
//
this.scansTextB ox.Location = new
System.Drawing. Point(72, 16);
this.scansTextB ox.Name
= "scansTextB ox";
this.scansTextB ox.Size = new
System.Drawing. Size(49, 20);
this.scansTextB ox.TabIndex = 24;
this.scansTextB ox.Text = "500";
//
// frequencyTextBo x
//
this.frequencyT extBox.Location =
new System.Drawing. Point(72, 36);
this.frequencyT extBox.Name
= "frequencyTextB ox";
this.frequencyT extBox.Size = new
System.Drawing. Size(49, 20);
this.frequencyT extBox.TabIndex =
25;
this.frequencyT extBox.Text
= "2000";

Nov 15 '05 #3

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

Similar topics

1
2242
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 GB, and the other is 4.2GB. I shunk again and again: 1. the 6.7GB become 5.9GB, 5.2GB, 4.7GB and 4.2Gb (four times) 2. the 4.2Gb become 4.0GB (just one more time)
6
3099
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 30-40Gb. I´ve been trying this: dbcc shrinkfile('LEAR_Index',40000) But to no apparent avail; the file did not shrink.
1
1637
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 the way. I have a transaction log of 1792 kb...
1
2566
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 description text box which is to the left of the image is more then one line of text(can grow = true), the report section increases in size and leaves a white space between the next record below. If there is an image to display with only one line of...
2
7567
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 he line will vanish when there is no data entered in the memo field. Its not shrinking! There is nothing else on the line, and no field name or anything else. I have tried shrinking it to a single small line and saying "Can Grow", but its growing...
1
1763
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 computer. I had found that the AutoScaleBaseSize setting was inconsistent on some of the inherited forms and changing that stabilized the forms at home. But at work all the control widths are growing 28% on each build and all the control heights...
2
1571
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 have reported that the server is running out of disk space and examination shows that the log files for several of the databases are at 5Gb or more. After reading around the subject I suggested the following sequence of operations:
3
4184
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 the height and width of the Non Client area is 15 and 4 pixels border respectively. Also the Nonclient area has been painted as per our need. Now all is fine but in design time when the controls in the form are anchored other than top, left. Now...
0
1720
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 Blessings from business owners are important in all SOA implementations. This article articulates the vision of reusability with a different spin around the business users, the ultimate end users of SOA.
0
9892
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9735
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10661
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10718
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9497
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5731
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4134
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3172
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.