Click to See Complete Forum and Search --> : UserControl.Extender.Top and .Left


Crazy D @ Work
May 25th, 1999, 04:12 AM
Hi
I'm writing a control, which has an X and an Y property. What I want to do, is when these values are 0, that I fill them with the UserControl.Extender.Top and .Left values. But, these values are not available at runtime, so I can't get them in the method where I need to use them.
I'm currently getting these values in the ReadProperties event, but this is actually a bit earlier then I want.
Does anyone knows a better place to get these values?
Tnx in advance

Crazy D :-)

Rob
June 3rd, 1999, 08:45 PM
Those properties become available to the UserControl at some point in the control's initialization. If you try to query them in the UserControl_Initialize event, you'll get an error. However, they are available in the UserControl_Show event, because at that point in time the client site has been set up. This might be a solution to your problem.

rob
June 3rd, 1999, 08:45 PM
Those properties become available to the UserControl at some point in the control's initialization. If you try to query them in the UserControl_Initialize event, you'll get an error. However, they are available in the UserControl_Show event, because at that point in time the client site has been set up. This might be a solution to your problem.