Results 1 to 5 of 5

Thread: Hide inherited properties of another control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Brighton, England
    Posts
    112

    Question Hide inherited properties of another control

    I've created an active x control which has a couple of text boxes, a command button and a frame. I know how to add extra properties into my control using property let, get. How can I remove some of the default properties of the standard (e.g. text box) controls from my own control?

    Is this possible

    thanks in advance

    john

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Are you talking about VB6? No properties are added by default when making a user control. If you used the Wizard then the wizard ma have added them but you can either use the wizrd again and remove them or just delete the code for them.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Brighton, England
    Posts
    112
    hi Edneeis,
    thanks for the reply, I am using VB6 and did not use the wizrd. What I mean is that I want to remove dome of the default text box properties from my control which incorporates text boxes, any idea on how to do this??

    thanks

    john

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    BY default if you make a UserControl and put control on it (i.e TextBoxes) it doesn't expose the properties of those control nested in your usercontrol. In fact none of them are exposed, unless you expose them by mapping them to the nested control's properties or manually write the code.

    So if I make a new usercontrol and stick a textbox on it that doesn't mean that my control has a text property or multiline or any of those. Unless of course I added them through code.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Brighton, England
    Posts
    112
    Edneeis,
    thanks for clearing that up, I understand now

    cheers

    john

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