Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:14:02+00:00 2026-05-28T17:14:02+00:00

i am trying to move a image in picture box. i added panel to

  • 0

i am trying to move a image in picture box. i added panel to my application and also added picture box in panel. i opened an image.if the image size is big.i want to see the particular portion of image. so how can i move the image up and down (without using scroll bars) to see the particular portion of image?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:14:03+00:00Added an answer on May 28, 2026 at 5:14 pm

    You can add controls like move left, move right, move up, move down with associated actions to move the image within your picturebox. An example of how to do this for moving the image to the right is shown below. You can implement these action with mouse down and mouse up events so that the user just presses the appropriate buttons to move the picture as he wants. Also note that once you reach the maximum dimensions of the image, you can change the rectangular region to that within image bounds.

    int ff = 0; //number of positions to move
    Bitmap b2;
    private void button1_Click(object sender, EventArgs e)
    {
        if (ff == 0) { b2 = new Bitmap(pictureBox1.Image);}  //original image as bitmap b2
        Bitmap b1 = new Bitmap(pictureBox1 .Width ,pictureBox1.Height );  //new bitmap with rectangular region of original image
        Rectangle r1 = new Rectangle(ff++, 0, pictureBox1.Width, pictureBox1.Height );
        Graphics g = Graphics.FromImage(b1);
        g.DrawImage(b2, 0, 0, r1, GraphicsUnit.Pixel);
        g.Dispose();
        pictureBox1.Image = null;
        pictureBox1.Image = (Image)b1;
        pictureBox1.Refresh();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm loading an image in to my flex application and I'm trying to move
I am trying to make my background image move in the opposite direction as
I'm trying to animate an image using KineticJS to move across the screen, but
I'm trying to move all the images stored in web application folder to a
Actually I am trying to move some box alternatively with in another box. I
I'm trying to do an app which user can move image... And when the
I am currently trying to have an image move around the screen in certain
I have a problem where I want to fade out an image, then move
i am trying to create an overlay like this when mouse move over image
Im trying to move an image around with the accelerometer by doing that: -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.