Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2008

Tip: Looking for answers? Try searching our database.

Control Size?  Cache Maybe?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gator - 07 Feb 2008 11:55 GMT
Greetings all.

I'm having a very strange (not to mention frustrating) problem.

I'm developing a Windows Forms C# application in VS 2008.  On the bottom of
the form, I have four controls.  Originally they were all set to one size -
206, 74.  I'm trying to change them all to be 180, 60.  I've used the various
toolbar buttons (make all same width, make all same size, etc.) to no avail.  
Although the controls will appear to be the same size in the designer, when I
debug the program, three of the four controls will be the new size, but the
last one reverts to the old size.

I've saved the project with all the controls appearing to be the same size
in the designer, closed VS 2008, reboot my machine...and when I reload the
solution, the fourth control is stuck at the old size.

I've even gone so far as to modify the Form1.designer.cs file outside of the
development environment with the solution closed to set the new size
manually, however, upon reloading the solution, again, it's the old size.

Is form information cached anywhere?  Is there something obvious that I'm
missing?  This seems like such a simple problem to overcome, yet I'm about to
go postal.

Thanks in advance for any and all information you can provide!
Kevin Spencer - 07 Feb 2008 12:01 GMT
Is it possible that you've bound the Size property of the Control to an
Application Configuration value?

Signature

HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

> Greetings all.
>
[quoted text clipped - 29 lines]
>
> Thanks in advance for any and all information you can provide!
Gator - 07 Feb 2008 12:41 GMT
Hi Kevin,

Thanks for the reply.  No, the Size property (or anything else about the
control) is not bound to anything.

It's very strange...I have 16 of these controls across four forms in my
application (the control is to capture an electronic signature), and all of
them work and display fine, except for this one.  At this point, I think I'm
just going to create a new form and see if that works...I'm really at the end
of my rope on this one.

Thanks again for your reply...it's much apprecited.

-Gator

> Is it possible that you've bound the Size property of the Control to an
> Application Configuration value?
[quoted text clipped - 32 lines]
> >
> > Thanks in advance for any and all information you can provide!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.