// ----------draw form event;---------------- public void OnParint() { Graphics grap = mdrawform.CreateGraphics(); grap.Clear(Color.Transparent); //mdrawform.Invalidate(); OnParint(grap); }
// show, hide the GUI; public void doTest() { if (mdrawform.Visible == false) { mdrawform.Show(); Bind2Wow(); // reset background; Graphics grap = mdrawform.CreateGraphics(); grap.Clear(Color.Transparent); // notify graphs, _formclientevent.OnSize(_wowwin.mclient); _formclientevent.OnParint(grap); } else { mdrawform.Visible = false; } }