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 / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Pocket PC Devlopment - Scaling controls at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FredC - 06 Sep 2007 21:06 GMT
When I add controls to a pocket PC form at design time, all the scaling works
fine.
I see in the initialize code the use of AutoScaleDeminsions and AutoScaleMode.

However, when I add a control (say a button) dynamically at run time and I
use the AutoScaleDeminsions and AutoScaleMode again for the parent form it
does not work and I get a badly scaled button.

I can however use button.Scale(x ) and get the control to scale.

What is the preferred method of scaling controls that are added at runtime?
Thx
Ignacio Machin ( .NET/ C# MVP ) - 06 Sep 2007 21:28 GMT
Hi,

> When I add controls to a pocket PC form at design time, all the scaling
> works
[quoted text clipped - 11 lines]
> runtime?
> Thx

You better post this question in the CF group

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.