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?

Re: Method Conversion from VB6 to VB.Net 2005 by Herfried

Herfried
Wed Nov 22 16:40:22 CST 2006

"Elmo Watson" <sputnik@yahoo.com> schrieb:
> 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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Re: Method Conversion from VB6 to VB.Net 2005 by Garry

Garry
Thu Nov 23 08:56:30 CST 2006

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




"Elmo Watson" <sputnik@yahoo.com> wrote in message
news:%23hmw%23InDHHA.4132@TK2MSFTNGP04.phx.gbl...
> 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?
>
>