CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    UserControl.Extender.Top and .Left

    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 :-)

  2. #2
    Join Date
    Apr 1999
    Posts
    19

    Re: UserControl.Extender.Top and .Left

    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.


  3. #3
    Join Date
    Apr 1999
    Posts
    19

    Re: UserControl.Extender.Top and .Left

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured