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 / December 2004

Tip: Looking for answers? Try searching our database.

why does build resize form controls?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shamus - 20 Nov 2004 18:24 GMT
I'd posted months without having a grasp of what the problem really is. The
issue is with an Infragistics UltraWinListBar control. It's on a base form,
many forms inherit from the base form. The UltraWinListBar controls on the
inherited forms seem to want to use their own size information instead of the
inherited size values. I hit reset in properties, and the control returns to
the inherited size (75,568). But, then I build (or rebuild) and the control
returns to 75,547. It's bizarre and frustraing. Locking the control does no
good. Is something stuck in a cache somewhere? I just don't get it. If anyone
knows of this issue, I'd appreciate a response.
Thanks,
Shamus
shamus - 20 Nov 2004 19:37 GMT
And, I just searched my whole local file system. No source code file contains
the string '547'. Also a project level search in VS reports no generated
hidden winform code setting the control to 547 height. So, I'm stumped as to
how much less why the control resizes to 547 high. Anybody?

shamus

> I'd posted months without having a grasp of what the problem really is. The
> issue is with an Infragistics UltraWinListBar control. It's on a base form,
[quoted text clipped - 7 lines]
> Thanks,
> Shamus
shamus - 20 Nov 2004 20:07 GMT
I also just noticed, I don't even have to build, I can just reset the form
size, save, close the form and when I reopen it, it resizes, frustrating at
best.

> I'd posted months without having a grasp of what the problem really is. The
> issue is with an Infragistics UltraWinListBar control. It's on a base form,
[quoted text clipped - 7 lines]
> Thanks,
> Shamus
shamus - 21 Nov 2004 20:19 GMT
So, has anybody else even seen this? I ask because I've never been able to
get a reasonable explanation. Or any explanation actually. I find it hard to
believe that I'm the only person whose run into this issue.

> I'd posted months without having a grasp of what the problem really is. The
> issue is with an Infragistics UltraWinListBar control. It's on a base form,
[quoted text clipped - 7 lines]
> Thanks,
> Shamus
Bob Powell [MVP] - 21 Nov 2004 20:33 GMT
Ask Infragistics?

Forms I create seem to remain the size I assign to them. I'm not using
Infragistics tools so I suspect that the problem you're seeing is solely to
do with a third party product.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> I'd posted months without having a grasp of what the problem really is. The
> issue is with an Infragistics UltraWinListBar control. It's on a base form,
[quoted text clipped - 7 lines]
> Thanks,
> Shamus
saurabh - 13 Dec 2004 13:45 GMT
I would say, its to do with autoscaling. The Winforms autoscale depending on
the fact that the font size in design mode is different to the one when its
running. When the AutoScale property is set to true, the framework checks
for the AutoScaleBaseSize and then scales the controls accordingly.

Are you using 120 DPI  whereas the base one was designed at 96 DPI or other
way round

--Saurabh

> I'd posted months without having a grasp of what the problem really is.
> The
[quoted text clipped - 14 lines]
> Thanks,
> Shamus
saurabh - 13 Dec 2004 13:59 GMT
Try searching for a line like this :
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

I suspect that the size is different for base form and derived form.
possibly (5, 16) ?

--Saurabh

>I would say, its to do with autoscaling. The Winforms autoscale depending
>on the fact that the font size in design mode is different to the one when
[quoted text clipped - 25 lines]
>> Thanks,
>> Shamus

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.