Results 1 to 5 of 5

Thread: Inherited usercontrol...

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Inherited usercontrol...

    I'm making my own usercontrol, inherited from TextBox...
    I have overrided the OnTextChanged event to do some stuff. Now if I use this control on a form, the TextChange event will never fire
    what should I do?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try calling the MyBase.OnTextChanged from inside the Overrode one. I think you may need to call it first before your code, too.

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    Try calling the MyBase.OnTextChanged from inside the Overrode one. I think you may need to call it first before your code, too.
    there is no such method that I can call
    doesnt show up in the intellisense... maybe it's becasue I overrode it?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    It doesn't show up in the intellisense for some reason but its there and the intellisense kicks back in for the parameters once you type it. Sounds like a bit of a bug.

    VB Code:
    1. Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
    2.         MyBase.OnTextChanged(e)
    3.         'your code here
    4.     End Sub

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    It doesn't show up in the intellisense for some reason but its there and the intellisense kicks back in for the parameters once you type it. Sounds like a bit of a bug.

    VB Code:
    1. Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
    2.         MyBase.OnTextChanged(e)
    3.         'your code here
    4.     End Sub
    aah thanks stupid intellisense
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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