Results 1 to 4 of 4

Thread: User control Guidelines- Suggestion Needed

  1. #1

    Thread Starter
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396

    User control Guidelines- Suggestion Needed

    I wish to write a user control- have never written one before, I know the basics and all but just needed a suggestion...I'm going to make a label control....and here's my question


    How do I make the label editable at run-time so that user can edit the data that is being displayed in the label.

    Thanks
    Can't Remember Birthdays or Important Dates- Never Miss any Important Date(s)

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    well how are you making the control?? are you going to use a standard label in your user control?? or are you going to make the user controls form surface the label?

  3. #3

    Thread Starter
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396
    Standard Label
    Can't Remember Birthdays or Important Dates- Never Miss any Important Date(s)

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    well you basically have to manually expose all its properties...

    for example.. you would make a property in your user control called caption.. and when that property is set it should set the actual labels caption... thats how user controls work that have controls in them.. you need to expose the properties and methods of the controls

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