We have to draw a line as per the starting & end-point given by the user ..
At the mid point of line a star is to be displayed as the length of line i.e. scaling of star should be there.
** Small star for small line & large star for larger line
The code attached is absolutely correct.
Please tell whether we can draw a line directly without using my pen object.
Is there any other method that reduces Length Of Code.
Check this code
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

FroglegRank #1,020 · 1.9K reputationPosted Jun 24, 2012, 11:50 AM EDT
If you're in form paint event you don't need to create graphics
use e.Graphics (PaintEventArgs)
NAVNEET VATS6 reputationPosted Jun 24, 2012, 8:08 PM EDT
I have already given the source code & aim of the program ..
You can make desirable changes to the program
FroglegRank #1,020 · 1.9K reputationPosted Jun 24, 2012, 11:37 PM EDT
NAVNEET VATS6 reputationPosted Jun 25, 2012, 2:44 AM EDT
You have tried to change my code..
But still I could not get what I expected.
I was asking for the suggestions to reduce the LOC & draw a line without passing my pen object.
Still I got to learn new command e.Graphics from you.
Well tried man but I expected something else