hytos / ID2.Manager / ID2.Manager.Common / Helpers / TableLayoutPanelHelper.cs @ e17d4c6f
이력 | 보기 | 이력해설 | 다운로드 (738 Bytes)
1 | bc83db04 | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | namespace ID2.Manager.Common.Helpers |
||
8 | { |
||
9 | |||
10 | /// <summary> |
||
11 | /// Double Buffered function . |
||
12 | /// </summary> |
||
13 | public static class TableLayoutPanelHelper |
||
14 | { |
||
15 | public static void SetDoubleBuffered(System.Windows.Forms.Control c) |
||
16 | { |
||
17 | if (System.Windows.Forms.SystemInformation.TerminalServerSession) |
||
18 | return; |
||
19 | System.Reflection.PropertyInfo aProp = typeof(System.Windows.Forms.Control).GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); |
||
20 | aProp.SetValue(c, true, null); |
||
21 | } |
||
22 | } |
||
23 | } |