Method Conversion from VB6 to VB.Net 2005

E

Elmo Watson

In vb6, I had a program that had the following code:
StrPtr
LenB
Picture1.Print
Picture1.CurrentX (& Y)

They don't apparently transfer over in vb.net 2005 - - -

I hate to admit it, but I found this code somewhere on line and I have never
used these properties/methods again for anything else and don't know what to
look for in place of them...

Can someone help me find the answers please?
 
H

Herfried K. Wagner [MVP]

Elmo Watson said:
In vb6, I had a program that had the following code:
StrPtr
LenB

Both are not required any more. For which purpose did you use the method?
Picture1.Print
Picture1.CurrentX (& Y)

Handle the picturebox' 'Paint' event and use 'e.Graphics.DrawString'
instead.
 
G

Garry

Yes.

I had stuff like that.

Embarrassing to ask, isn't it.

Do yourself a favor - re-write the app using updated principles.

Yes - look at the upgraded code to give yourself an idea in certain cases
BUT don't re-use the upgraded code ad hoc.

Garry
 

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