Divelements Community
Customer discussion of all Divelements products

Controls in my own User Control are resizing

Latest post 04-17-2007 18:25 by Chepilo. 2 replies.
  • 04-17-2007 17:01

    Huh? [:^)] Controls in my own User Control are resizing

    Is there a way to keep the controls within my User Control from resizing and spreading out?  I asked this question on the Microsoft Winforms forum before I realized I was working with a Divelements product.  Their answer was, "Sounds like you're using a commercial layout/docking control.  Seeing it changes sizes of controls would be the expected outcome."  To be more specific, my User Control is meant to be placed on a WizardPage control.  My User Control has a number of textboxes, dropdowns, listboxes, buttons, etc. within it.  When I place normal windows controls on the page, they are not resized at runtime and look as they did at design time.  However, when I place controls into a User Control (created within the project) and place the User Control on the WizardPage the controls are slightly resized up and spread out on the control causing them to move beyond the extents of the Wizard page.  I need my User Control as we will be placing it in different forms and need the code and controls to be reusable.
  • 04-17-2007 17:39 In reply to

    Indifferent [:|] Re: Controls in my own User Control are resizing

    When I create a new project, add a Wizard to my form, add a User Control to the form, the controls appear to work normally.  I am using the same dll in both projects.  Has something been removed from my original Wizard control?  I inherited this code and the code behind is fairly straight forward.  I do not see anything amiss in the code that would change the sizing properties of controls placed on the WizardPage.
  • 04-17-2007 18:25 In reply to

    Big Smile [:D] Re: Controls in my own User Control are resizing

    I solved it.  We have a call using reflection to reset the fonts for the form before loading it.  My bad!
Page 1 of 1 (3 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems