I draw my contents on a form inside OnPaint
event with e.graphics.DrawLine()
, etc... . So far I was drawing according to form size
(resizing my elements) but now I'd like draw as big as I want, and if I draw outside the visible area (the place where object will be drawn is decided at runtime dynamically), I want user to use scroll bars in order to see parts of whole content which I draw.
I have enabled AutoScrolling
but I don't know how it may help me when I don't have any controls on that form.
How can I do it?
See Question&Answers more detail:os