Adding scrollbar in GDI+ [modified]
-
I have to draw a picture using GDI, which is definitely bigger than the screen. I dont know the drawing size intially, its dynamic one. so, to see the whole picture i should have scroll bars. how can i add scroll bar to form. Please help me with sample code. Thanks in Advance -- modified at 5:06 Thursday 25th May, 2006
-
I have to draw a picture using GDI, which is definitely bigger than the screen. I dont know the drawing size intially, its dynamic one. so, to see the whole picture i should have scroll bars. how can i add scroll bar to form. Please help me with sample code. Thanks in Advance -- modified at 5:06 Thursday 25th May, 2006
-
Here is a simple method: Set form property AutoSize to true. Place panel on form in (0,0) location. Set panel size equal to image size. Draw your image on this panel. Best regards, Alexey.
-
Sorry, cant modify my post, this property is AutoScroll, not AutoSize. Best regards, Alexey.
Thanks 4 Ur Help. I did nt get the way to keep panel at (0,0) position. infact i am not using any panel...., can u please tell me, what is panel.. and how to keep it (0,0) position, Please help me.. Thank U