all groups > dotnet windows forms designtime > july 2006 >
You're in the

dotnet windows forms designtime

group:

Force component location winthin a form


Force component location winthin a form A.User
7/24/2006 6:27:23 PM
dotnet windows forms designtime:
I have a simple panel custom user contol that I want to force to a certin
location (not 0,0) when added to
a form. Is there a way to do this so it shows up correctly in the designer?

Re: Force component location winthin a form G Himangi
7/26/2006 5:11:20 PM
You can use the InitializeNewComponent (OnSetComponentDefaults in .Net
1.0/1.1) to set the starting location of the control.


---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : Drop-In Explorer GUI Controls For Your Apps (.Net & ActiveX
Editions Available)
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions rapidly in .Net
---------




[quoted text, click to view]

AddThis Social Bookmark Button