TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
alsa james
NA
3
0
C# and form scales
Jul 11 2006 1:50 PM
Hi all! I am newly converted to C# from a Java background and wonder if anyone could help me with a problem. Background: I have a c# form consisting of some buttons, labels and text fields. I'd like to make use of what i can only describe as the scaling classes. I'd like to be able to scale down a whole form which is being used on a PDA - controls, labels, white space, everything! I've tinkered with the AutoScale( ? ) class but it doesn't seem to do what I need. I can manage to use something like this (forgive me if there are syntax errors, the original source is at work): foreach (Controls control in this.Controls) { control.Scale(scaleChangeValue); } this alters the scale of the controls in my form. i can reduce their scale incrementally (and to a certain extent it does exactly what i require..) but eventually they bunch together and collide - they all push towards their anchor ( i think and changing anchors to none etc does not help). In Java i would normally just have a layout type to avoid this. does anyone have any suggestions as to how i could 'shrink' a form whilst keeping its integrity and layout? also, which may be important, as it is created through the Visual studio suite and a PDA project, the forms are generally not movable windows. Rebuilding the UI from scratch is really my last option as this one form has around 20 others which need the same effect applying. thanks in advance, i hope i have explained myself adequately! best wishes.
Reply
Answers (
3
)
WEBSITEMONITORING:REQUEST:URGENT PLZZZZZZZZZZZZZ
Boxing and Unboxing