Apr 4, 2017 08:22 PM
(This post was last modified: Apr 4, 2017 08:25 PM by VmX5.)
Hey guys, I need some help :(
So I have a Custom Control :
And I draw a very large object (It's not really this large)
How could I get a scroll bar in order to scroll though the drawn graphics?
Note: The Control will be set at a specified size, ex: (100, 100) <--- Not big enough to see all the drawn graphics, In my case I might need drawn text so I can't resize the drawn graphics.
Thanks ~VmX5.
So I have a Custom Control :
PHP Code
<?php
Public Class RDrawing
Inherits Control
End Class
And I draw a very large object (It's not really this large)
PHP Code
<?php
Public Class RDrawing
Inherits Control
Protected Overrides Sub OnPaint(e As PaintEventArgs)
MyBase.OnPaint(e)
e.Graphics.FillRectangle(Brushes.Red, 10, 10, 1000, 1000)
End Sub
End Class
How could I get a scroll bar in order to scroll though the drawn graphics?
Note: The Control will be set at a specified size, ex: (100, 100) <--- Not big enough to see all the drawn graphics, In my case I might need drawn text so I can't resize the drawn graphics.
Thanks ~VmX5.


