key in data in console and then use it in window form

suedasszyy

New member
Joined
Oct 25, 2006
Messages
4
Programming Experience
Beginner
hye.....

I have a problem with my programme.

i have to give data in console application and then use the same data to draw graph in window form . For example:

Console appliction:


writeline(please enter your Point1:")
Readline()
writeline (please enter your Point2:")
Readline ()

Window Form:


Dim Point1, Point2 as New Point
DrawCurve(Point1,Point2)

Plottpoint(Point1, Point2)

i already done how to link this 2 methode, means that:
run:

console apll will pope out and ask about the variable and then enter. window form will pope out, but didn't plot my point.:mad:

Did someone have any idee to solve my problem?
Thank you so much

- Studentin-
 
Hey,

You need to pass the two points from the console to the form. Try changing the New() sub in your form to:
New(Byval prmPoint1 as integer, byval prmPoint2 as integer)

Inside the new() sub do something like:-

Point1 = New Point(prmPoint1, prmPoint2)

Then draw the point in the load event...

Hope this helps,

Regards,
Andy
 
Back
Top