Re: VB6 - Forcing a UserControl's dimensions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Thu, 22 Jun 2006 06:04:57 -0400, "MyndPhlyp" <nobody@xxxxxxxxxxxxx>
wrote:

A nice feature I've discovered with UserControls is that the
UserControl_Initialize() subroutine fires even at design time. (Not a big
surprise.) Setting UserControl.Height and UserControl.Width however has no
effect, at least in the form designer, and I end up having to look at the
control's properties to see what the dimensions should be. Is there a slick
way of forcing the UserControl's Height and Width at design time?

Use the Resize Event
.



Relevant Pages

  • VB6 - Forcing a UserControls dimensions
    ... A nice feature I've discovered with UserControls is that the ... UserControl_Initializesubroutine fires even at design time. ...
    (microsoft.public.vb.general.discussion)
  • Customizing Form Designer in the IDE for Delphi 4
    ... I need to customize the form designer in delphi 4 so that it draws a bitmap ... on the form at design time as well as the grid. ...
    (borland.public.delphi.ide)
  • Re: Datagridview columns keep appearing
    ... When user controls are displayed at design time, ... // do databinding here. ... Whenever I close the form in the form designer and then open it ...
    (microsoft.public.dotnet.languages.csharp)