|
-
Dec 21st, 2002, 12:54 PM
#1
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!!
-
Dec 21st, 2002, 08:16 PM
#2
Try calling the MyBase.OnTextChanged from inside the Overrode one. I think you may need to call it first before your code, too.
-
Dec 22nd, 2002, 02:16 PM
#3
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!!
-
Dec 22nd, 2002, 02:44 PM
#4
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:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
MyBase.OnTextChanged(e)
'your code here
End Sub
-
Dec 22nd, 2002, 03:02 PM
#5
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:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
MyBase.OnTextChanged(e)
'your code here
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|