home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,502 of 10,840   
   Steve Gerrard to All   
   Re: ocx question   
   16 May 05 07:52:40   
   
   From: mynamehere@comcast.net   
      
   "mickey"  wrote in message   
   news:k2ng81lahr56p55k0urk4ofne2scntvngj@4ax.com...   
   >   
   > I'm playing around with activeX-control creation.   
   >   
   > My question is:   
   > How can I resize the OCX I draw on a project   
   > within the ocx-code.   
   >   
   >   
   > My next questions is, is it usefull to create this activex-control?   
   >   
   >   
      
   1. You can resize the control within its own code, but you might want to check   
   for the scalemode of the container it is in. See the Ambient.ScaleUnits   
   property. Normally the size and placement of a control is managed by the   
   container, not the control itself.   
   This will work in the usual Twips situation:   
      
   Private Sub UserControl_Click()   
       UserControl.Width = 1000   
       UserControl.Height = 1000   
   End Sub   
      
   2. User controls are very useful. I would not bother with actually building it   
   as an OCX; this gets into annoying problems with registration, binary   
   compatibility, and other such noise. Just add the user control source code   
   file(s) to any project where you need it.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca