|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
About scrollbars and pictureboxes
Hello all,
Im creating graphs within a picturebox. Its a simple 2D XY graph done with Line() and so, but sometimes it wont fit inside the boundaries of the picturebox, I was wondering, how could I implement a horizontal scrollbar to scroll thru the graph? |
|
#2
|
|||
|
|||
|
I can't write the entire code here but i can give u the idea/logic behind it
Create a pic cont on a form >>name=picContainer create aonther pic on the above created pic>>name=picChild set the height/width of picChild as per u r need u will notice that picChild does not spreads it self on the form but remains in the picContainer add a scroll bar to the form add code so that u manip the top/left props of picChild e.g. to scroll up set top to -ive valueto scroll down set top to +ive value for hor scroll use left prop of picChild for ver scroll use top prop of picChild hope this will help. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > About scrollbars and pictureboxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|