|
-
August 24th, 2009, 10:21 AM
#1
c# gui scaling
Hi,
I'm new to C# and I am currently making some sales tracking system. I have a big problem with its user interface.
You see, I have this Form and I put controls in it, specifically a TabControl.
My Form's size is at 1024x768. My TabControl's size is near the Form's width but leaving margins on both sides. Its height doesn't matter at the moment. Now, when I run my program it shows up a 1024x768 user interface, looking clean and good. When I maximize it, the User interface maximizes but the TabControl remains the same thus making a bigger margin on the right side.
I have read about scaling and but It isn't clear to me.
Please help. =)
-
August 24th, 2009, 11:54 AM
#2
Re: c# gui scaling
Use the Dock and Anchor properties. If you want the tab control to resize horizontally and from the bottom down, set the anchor to left, right, bottom.
-
August 24th, 2009, 07:02 PM
#3
Re: c# gui scaling
The other alternative is... Design your App for a certain size and remove the Maximise button. Eg: Windows Calculator.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
August 24th, 2009, 07:07 PM
#4
Re: c# gui scaling
 Originally Posted by rliq
The other alternative is... Design your App for a certain size and remove the Maximise button. Eg: Windows Calculator.
That is a very lazy solution...
If it makes sense to resize the window, users should be able to.
-
August 24th, 2009, 08:47 PM
#5
Re: c# gui scaling
I agree, but it is not always applicable to all applications.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
August 25th, 2009, 02:34 AM
#6
Re: c# gui scaling
That's true. Many of the manufacturing utilities that I write do not have sizable dialogs.
-
August 25th, 2009, 05:30 AM
#7
Re: c# gui scaling
Cheers to BigEd781 and everyone.
Anchoring is pretty flexible. =)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|