CraftSynth.ImageEditor – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | namespace CraftSynth.ImageEditor |
2 | { |
||
3 | /// <summary> |
||
4 | /// Source: |
||
5 | /// https://nickstips.wordpress.com/2010/03/03/c-panel-resets-scroll-position-after-focus-is-lost-and-regained/ |
||
6 | /// </summary> |
||
7 | public class CustomPanel : System.Windows.Forms.Panel |
||
8 | { |
||
9 | protected override System.Drawing.Point ScrollToControl(System.Windows.Forms.Control activeControl) |
||
10 | { |
||
11 | // Returning the current location prevents the panel from |
||
12 | // scrolling to the active control when the panel loses and regains focus |
||
13 | return this.DisplayRectangle.Location; |
||
14 | } |
||
15 | } |
||
16 | } |