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 568729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:13:10+00:00 2026-05-13T13:13:10+00:00

In my .NET 2.0 project, I made an empty derived class of System.Windows.Forms.PictureBox :

  • 0

In my .NET 2.0 project, I made an empty derived class of System.Windows.Forms.PictureBox:

public class NewPictureBox : PictureBox
{
    //absolutely nothing 
}

Then I did the following:

  1. set both the derived control’s and the base control’s Image property to a rather large image (800×600), SizeMode is Normal (only the upper-left portion is displayed);
  2. hooked up several of the NewPictureBox‘s and PictureBox‘s events so a selection box can be drawn when dragging the mouse on the surface;
  3. set it up so the selection box’s properties (Width/Height) will be updated on NumericUpDown controls in real time.

The problem is when dragging the mouse real fast on the derived PB, there is considerable “choppiness” compared to doing the same on the base PB. The Width/Height values are not updated in real time.

Does anybody know why is it like this? How do I achieve the same smoothness with the derived control? Thanks!

For anyone who wishes to check out the minimal sample project with the problem described:

http://www.mediafire.com/?i2nq2tmmjzx

  • 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-13T13:13:10+00:00Added an answer on May 13, 2026 at 1:13 pm

    Getting an image resized by PB to fit the control is very expensive. GDI+ has a very good filter but it doesn’t come for free. Resize the image yourself before you assign it to the Image property so the PB doesn’t have to resize it.

    Using a bitmap created with Format32bppPArgb can make a big difference too, it is 10 times faster than any other format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made an Area project for my ASP.NET MVC application called 'Admin'. This will
I have an ASP.NET project (VS2008 on Windows 7 with either webforms, MVC1, or
In an ASP.NET web forms project that is not quite ready to be upgraded
Recently my friend gave me a project which is made of vb.net and sql
I have .NET project which use CDO ActiveX. Everyhting works fine on Windows Server
I am working on an .NET MVC 3 project where I have made all
i made asp.net project on ms access. the db is successfully filled but why
While my ASP.NET project uses version 3.5 of the framework , the event log
In a recent VB.NET project I adopted the naming conventions I'm used to using
I'm starting a .NET project and my developers have their own laptops. How can

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.