I need to create basic MyControl - Custom (User) Control having the only
"Line" method for drawing straight Line inside the control.
I want to call this method as
MyControl1.Line (x1,y1,x2,y2)
from the Main Form on Button_Click Event.
And I don't want no more code in this form for now.
--------
Unfortunately I'm confused about all this Graphics graphics, onPaint....
So with various "Invalidate","D ispose", etc.... so I need some small piece
of code...
--------
Does anybody can help me? Thanks in advance.
"Line" method for drawing straight Line inside the control.
I want to call this method as
MyControl1.Line (x1,y1,x2,y2)
from the Main Form on Button_Click Event.
And I don't want no more code in this form for now.
--------
Unfortunately I'm confused about all this Graphics graphics, onPaint....
So with various "Invalidate","D ispose", etc.... so I need some small piece
of code...
--------
Does anybody can help me? Thanks in advance.