Click here to Skip to main content
15,920,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How Change Registry permission? Pin
mrmastii5-May-06 8:40
mrmastii5-May-06 8:40 
QuestionCannot inherits Image class?????? Pin
svincoll44-May-06 15:01
svincoll44-May-06 15:01 
AnswerRe: Cannot inherits Image class?????? Pin
Mekong River4-May-06 15:43
Mekong River4-May-06 15:43 
GeneralRe: Cannot inherits Image class?????? Pin
svincoll44-May-06 18:53
svincoll44-May-06 18:53 
AnswerRe: Cannot inherits Image class?????? Pin
Guffa4-May-06 19:00
Guffa4-May-06 19:00 
GeneralRe: Cannot inherits Image class?????? Pin
svincoll44-May-06 19:12
svincoll44-May-06 19:12 
GeneralRe: Cannot inherits Image class?????? Pin
Guffa5-May-06 4:53
Guffa5-May-06 4:53 
AnswerRe: Cannot inherits Image class?????? Pin
Dave Kreskowiak5-May-06 6:31
mveDave Kreskowiak5-May-06 6:31 
Yeah, I know it's kind of weird, but, you can't do this! 8)

The problem is that the constructors for the Image class are tagged internal. This means that only classes inside the same assembly (System.Drawing.dll) can inherit from Image. Stupid, isn't it?

There is no way to directly inherit from Image. But, there is a pseduo-way around it in C#. Check out this[^] discussion. I don't know if the exact same thing can be done in VB.NET yet.


Dave Kreskowiak
Microsoft MVP - Visual Basic

Question<b>Tranlation of New Event<b> Pin
eatwork4-May-06 12:16
eatwork4-May-06 12:16 
AnswerRe: Tranlation of New Event Pin
Dave Doknjas5-May-06 14:05
Dave Doknjas5-May-06 14:05 
GeneralRe: Tranlation of New Event Pin
eatwork8-May-06 5:37
eatwork8-May-06 5:37 
GeneralRe: Tranlation of New Event Pin
Dave Doknjas8-May-06 6:03
Dave Doknjas8-May-06 6:03 
QuestionNeed help getting info out of my sortedlist Pin
crash8934-May-06 10:32
crash8934-May-06 10:32 
AnswerRe: Need help getting info out of my sortedlist Pin
crash8934-May-06 10:36
crash8934-May-06 10:36 
QuestionRetriving Field schema using ADO Pin
Quecumber2564-May-06 9:44
Quecumber2564-May-06 9:44 
QuestionFile replace and backup Pin
erniebert4-May-06 7:16
erniebert4-May-06 7:16 
QuestionReport Problem...Please help Pin
airprince4-May-06 6:54
airprince4-May-06 6:54 
AnswerRe: Report Problem...Please help Pin
Mekong River4-May-06 15:51
Mekong River4-May-06 15:51 
QuestionPlease Help Me.... Pin
airprince4-May-06 6:42
airprince4-May-06 6:42 
AnswerRe: Please Help Me.... Pin
Guffa4-May-06 8:09
Guffa4-May-06 8:09 
QuestionDatagrid: how to detect uncommitted changes? Pin
Roger Harvest4-May-06 6:39
Roger Harvest4-May-06 6:39 
QuestionPInvoke stack balance detected? Pin
Rashar4-May-06 6:25
Rashar4-May-06 6:25 
AnswerRe: PInvoke stack balance detected? Pin
kasik4-May-06 7:23
kasik4-May-06 7:23 
QuestionVB.Net Arrays Pin
passionirie4-May-06 5:22
passionirie4-May-06 5:22 
AnswerRe: VB.Net Arrays Pin
J4amieC4-May-06 5:40
J4amieC4-May-06 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.