Results 1 to 2 of 2

Thread: Inherited control?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

    Inherited control?

    I writing some control which inherits textbox control and I have problem: when add myControl to designer text 'myControl1' appears in textbox and I don't want that. I want to have clear textbox. I think question is how to set text property of control (which is inherited from textbox) to string.empty?

    regard j

  2. #2
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    In the constructor of myControl, just after InitializeCom.. use me.text = string.empty

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