Control Size? Cache Maybe?

G

Gator

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!
 
K

Kevin Spencer

Is it possible that you've bound the Size property of the Control to an
Application Configuration value?

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
G

Gator

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top