Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27214

[VB2010] - if Bitmap is NotInheritable, how can i use it in my class?

$
0
0
heres my class:
Code:

Public Class Bitmap2
    Inherits Bitmap

End Class

but i get these error
"'Bitmap2' cannot inherit from class 'Bitmap' because 'Bitmap' is declared 'NotInheritable'"
so how can i use it in my class, without recreate entire class?
(what i want is add some nice tools to the Bitmap class)

Viewing all articles
Browse latest Browse all 27214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>