c# - Winforms UserControl shows rectangles with Inverted Colors -


In a Winforms application (C # 2, FX2.0, VC2008)

I have a panel generated control to display custom control I am using Controls are arranged systematically and generally more than fit in the visible area of ​​the panel.

I have drawn a brief sketch of it:

Occasionally (after scrolling inside the panel) their color in the rectangular areas reversed (Green part in the sketch). These areas are random in size but always appear on the right edge of the panel. As you can see in the sketch, the arrow buttons in the panel scrollbar are also reverse, but not the thumbSlider and scroll area.

With inverted colors, I mean black becomes white, black becomes black, blue becomes brown.

I'm out of ideas.

  • Is this possible due to my application?
  • Is it possible to scrollbar arrow buttons?
  • Any thoughts?

Edit : ""

Edit : I was wrong about the panel. It has been a panel in the past, but it is now a userstrologer like this:

Public category MyPanel: UserControl {Public MyPanel () {DoubleBuffered = true; Border area = border style. Fix 3D; BackColor = Color.DarkBlue; VScroll = true; HScroll = false; AutoScroll = true; Autoscroll marg = new size (0, 4); }}

Are you using the system.windows.form. Panel? What did you mean when you called the derived control from the panel?

If you are using the system. Windows.form. Panel, it looks like a problem with the custom control, not the panel.

Could you possibly provide more information on custom controls?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -