How to correct a redrawing background cutted effect inside a panel

pitoloko

New member
Joined
Nov 24, 2012
Messages
1
Programming Experience
Beginner
How to reproduce this error?

Create a new winform

Select a backgound image for the form

Add a new panel

Set color transparent for the panel, set autoscroll = true, and add some controls inside the panel

Example:

YxRhx.jpg


Now scroll down or up and see the what I say...

cUsOW.jpg


How to correct this error?

Me: I've Tried all, No idea


Invalidate and Refresh method don't work for this, it "flashes" the panel all the time when scroll down/up, it only disimulate the problem...

VB.NET:
'Mouse wheel scrollbar
Public Sub panel1_MouseWheel(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseWheel
    Panel1.Invalidate()
End Sub

Someone told me to create a vScrollbar and handle it in my panel to adjust the minimum scrolled lines at time, for example to scroll 15 lines intead of default 6 lines, because if I scroll one entire page I don't get any visual problem, but i don't know how to do all that...
 
Back
Top