revert to VB and update to new project file format
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
using global::System.Windows.Forms;
|
||||
|
||||
namespace Pilz.UI.Utils
|
||||
{
|
||||
public static class DrawingControl
|
||||
{
|
||||
private const int WM_SETREDRAW = 11;
|
||||
|
||||
public static void SuspendDrawing(this Control control)
|
||||
{
|
||||
User32Bridge.SendMessage(control.Handle, WM_SETREDRAW, false, 0);
|
||||
}
|
||||
|
||||
public static void ResumeDrawing(this Control control)
|
||||
{
|
||||
control.ResumeDrawing(true);
|
||||
}
|
||||
|
||||
public static void ResumeDrawing(this Control control, bool redraw)
|
||||
{
|
||||
User32Bridge.SendMessage(control.Handle, WM_SETREDRAW, true, 0);
|
||||
if (redraw)
|
||||
control.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user