You want to have a line on your form or you want to use the graphics view? Because you can have lines without the graphicsview, so if you explained what you intend to do with this line, we might suggest an alternative solution.