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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:03:10+00:00 2026-05-11T17:03:10+00:00

In a Winforms application (C#2, FX2.0, VC2008) I am using a Panel derived Control

  • 0

In a Winforms application (C#2, FX2.0, VC2008) I am using a Panel derived Control to display custom controls. The controls are arranged vertically and there are usually more than fit in the visible area of the panel.

I have drawn a litte sketch of it:

Panel http://www.ericschaefer.org/Panel.png

Sometimes (usually after scrolling inside the panel) rectangular areas appear to have their colors inverted (green part in sketch). These areas are random in size but seem always to be at the right edge of the panel. As you can see in the sketch the arrow buttons of the panels scrollbar are also inverted, but not the thumbslider and the scroll area.

By inverted colors I mean black becomes white, white becomes black, blue becomes brown, etc…

I am out of ideas.

  • Can this be caused by my application?
  • Is it even possible to draw into the scrollbar arrow buttons?
  • Any ideas?

EDIT: “Screenshot“

EDIT: I was wrong about the Panel. It has been a Panel in the past but it is now a UserControl. Like this:

public class MyPanel : UserControl
{
    public MyPanel()
    {
        DoubleBuffered = true;
        BorderStyle = BorderStyle.Fixed3D;
        BackColor = Color.DarkBlue;
        VScroll = true;
        HScroll = false;
        AutoScroll = true;
        AutoScrollMargin = new Size( 0, 4 );
    }
}        
  • 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-11T17:03:10+00:00Added an answer on May 11, 2026 at 5:03 pm

    Solved:
    Apparently it was the fault of the touch screen driver. I can now reproduce the behaviour. If you click the “scroll down” button on any scroll bar via touch screen and hold it down for a while it keeps scrolling when you release it (the button stays pushed). After that you can click whereever you want, there will always be the “inverted colors” on the left side of the scroll bar. It happens with any application (explorer.exe!). Now it gets even better: Generally in Windows if you drag a scroll bar thumb button you can drift off of the scroll bar if you keep the mouse button pressed. But if you drift away too far the button will snap back to its original position (where you started dragging). Try it! The inverted colors rectangles are exactly as wide as the area where you can drift off without the button snapping back. I don’t even try to understand this.
    We installed a newer driver for the touch screen which does not keep scrolling even after you released the “scroll down” button and the issue disappeared. My blood pressure is back to normal but all the grey hair is probably not turning black I guess…
    Thanks anyways…

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

Sidebar

Ask A Question

Stats

  • Questions 179k
  • Answers 179k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Technical issues - you could potentially add breaking code by… May 12, 2026 at 3:54 pm
  • Editorial Team
    Editorial Team added an answer The problem was the static string in the java object.… May 12, 2026 at 3:54 pm
  • Editorial Team
    Editorial Team added an answer You really should have put these in an array or… May 12, 2026 at 3:53 pm

Related Questions

I have written a WinForms application (C# 2.0, VS2008) that registers several file types
I'm hosting IronPython 2.0 in a C#/Winforms application. I would like Python to be
How can I fetch data in a Winforms application or ASP.NET form from a
I'm trying to modify a C# WinForms application that uses multiple forms. At startup,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.