Component problem, pls help!

F

Fergus Cooney

Hi CM,

Lol, yes. it's that same question - am I dealing with a Type (class) or an
Object?

In Dim data As New DBAccess1, you <will> get all the methods after dotting
because data is an Object and so all the ClassAndObjMethods will be shown.

I think your task for the next day or so is to do some reading so that you
can get a firm answer to that question above. The MSDN documentation is ok,
but it helps to actually know what it's saying <before> you read it! See if
you can get hold of a book or two which will start you off gently. Read our
posts again as your understanding increases. At some pooint it will click and
suddenly become obvious. I have a feeling that you are not that far from that
point.

The code translation looks fine.

To fix the IDisposable problem you have to spell it out:
Public Sub Dispose() Implements IDisposable.Dispose

Regards,
Fergus
 
T

Tom Spink

ROFL

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
A

Armin Zingler

Tom Spink said:

Still you are laughing, but you don't know how much it takes to do the
vermin control... or.. or was it the Armin control? I don't know... irksome
in any way.... not talk about lawn mowing each day... yes.
 
C

CM

Thanks Fergus! I'll follow your advise.

I cannot believe that the Implement problem was solved by just comment out
the original one and re-type "Implements IDisposable" at a new line.
(without Public Sub Dispose() Implements IDisposable.Dispose)

It seems that the .Net IDE has some delay to recognize paste of big code, my
guess.

Regards,

CM
 
T

Tom Spink

lawn mowing

I hate mowing the lawn. Es ist schlecht.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top