Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
i design a page contain 5 picture,so i want with a scroll move those picture to left or right,
how i can do??
thanks
Posted
Updated 9-Feb-12 22:04pm
v3

If Your Data Is In Grid Then Use The Following Code

C#
private void gridView1_MouseWheel(object sender,
System.Windows.Forms.MouseEventArgs e) 
{
    GridView view = (sender as GridView);
    view.LeftCoord += e.Delta;
    throw new HideException();
}

Or Check This Link

http://documentation.devexpress.com/#WindowsForms/CustomDocument3066[^]

Hope This Help You
 
Share this answer
 
use your picture in div tag to add scroll like this :

HTML
<div style="overflow:auto"> 
<!--set fixed width and height of the div as much you want-->

<!-- insert picture here -->
</div>


Hope this will help you.
And don't forget to mark as answer if it helps. :)
 
Share this answer
 
1. Take a div, set its fix height width.
2. Set overflow property as "auto".
3. Put your images in above div

HTML
<div style="height:400px;width:600px;overflow:auto;">
Put your image here!
</div>
 
Share this answer
 
XML
<div style="height:400px;width:600px;overflow:auto;">
Put your image here!
</div>


it's work but i can't specific horizontal or vertical scroll??
thnks
 
Share this answer
 
v3
Comments
Sanjay K. Gupta 10-Feb-12 5:31am    
Use
<div style="height:400px;width:600px;overflow:scroll;">
Put your image here!
</div>
Sanjay K. Gupta 10-Feb-12 5:31am    
Please accept the answer if it helped you!
goldengriff 10-Feb-12 5:57am    
help me,how i can't specific horizontal or vertical scroll??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900