|
-
Oct 24th, 2002, 05:08 PM
#1
cant overload the dispose method of a picturebox
I have a class which inherits from PictureBox. I want to overload the Dispose sub, but I can't.
VB Code:
Public Overloads Overrides Sub Dispose()
End Sub
when I run my app, it gives me this error:
An unhandled exception of type 'System.TypeLoadException' occurred in Paint Mall.exe
Additional information: Declaration referenced in a method implementation can not be a final method. Type: PaintMall.Ruler. Assembly: Dispose.
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!!
-
Oct 24th, 2002, 07:35 PM
#2
PowerPoster
Overrides Overloads Protected Sub Dispose(ByVal disposing As Boolean)
That is what the MSDN library has for it.
-
Oct 24th, 2002, 10:19 PM
#3
hey it worked, thanks! 
what is that disposing boolean passed to the sub? what's the point
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!!
-
Oct 24th, 2002, 10:25 PM
#4
hmm, when I'm accessing my control from the Form, I see it as Dispose() , while it's declared as Dispose(boolean) in the control. Why is it? is it because of the protected keyword?
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
|