Results 1 to 2 of 2

Thread: Caption Problems

  1. #1
    SmartPeon
    Guest
    i have a label in a control, during design time you can change the caption of the control, how do you make it show the change during run time?

    Thanx

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Post Property Bag

    A different instance of the control is instantiated at design time and at run-time.

    The only way for a user-control to persist it's properties from design time to run time is to use the 'Property Bag'.

    I am not going to explain it in detail here (too long) but you will need the PropBag object and the following events of the UserControl: ReadProperties and WriteProperties.

    Hope this points you in the right direction.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

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