i have a sample code i downloaded sometime ago,
and i need its functionality.
i have a project that uses code snipets from it,
but after i upgraded to .net, it dont work anymore.
the problem is in the biggest problem is the api calls.
can anyone convert this sample into
a functional vb.net sample.
Last edited by ZaidGS; Mar 26th, 2004 at 07:02 AM.
i know this rule,
the upgrade wizard did that.
but that didnot work.
if you think you can walk around
this trouble, try attaching a working
example of this sample.
(its dont inlude much code,
so guess anyone who knows
how to do this thing, will not
need much time at all)
Change all refrences from "Form1" that are in "Form1" to Me
You need to refer to an instance of a class, not a class. In .NET a form is a class. Next, you can't use the line method. For:
Form1.picture1.line
change to
Me.Picture1.CreateGraphics.DrawLine()
I don' feel like changing that all, but you can probably fix that much.
Also, replace .HDC
with .Handle
This should solve most if not all of your problems