Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom control with two child controls: one of them isn't autoscaling
 

Custom control with two child controls: one of them isn't autoscaling

I have a custom control whose two child controls are a label and a textbox. When I set the custom control's AutoscaleMode to Dpi and I run my application on a screen with another Dpi, the label's height and width scale down, the textbox's height scales down, but its width does not. I never set the textbox's width anywhere, either, so I have no idea why this is happening. Can someone help me with this, please ?

LiterACola  Thursday, September 06, 2007 2:05 PM
Perhaps you can set up a little testproject to run and upload it to the internet or mail it to me and I'll take a look at it?
HawVie  Friday, September 07, 2007 7:41 AM

You can use google to search for other answers

Custom Search

More Threads

• raise event of an object in another class declared in main class
• Disable design time support for child controls
• Important: Dynamically added references are working during buildtime, but not in designer mode of VS2008
• Creat and activate Child form
• .NET erasing my hand written code!?! Please help
• Can a component know where it is? on initialize?
• How to have text size adjust to fill space.
• Owner drawn tabcontrol issues.
• Rebind several Controls in same Form. What i'm i doing wrong?
• UserControl's child container's contents not being serialized