Form Load
-
Hi just wondering if there is a simple way to force the form to reload. "this.Refresh()" does not seem to work. nether does "form.Load";
private void VMCU_BlanktheDisplay()
{
try
{
//works but doesnt update screen
VMCU.UpdateDisplay(VMCU.BlankDisplay);this.Load; //this.Refresh(); } catch (Exception) { // raise event with UCC VMCU.UpdateError(cmdError.BlanktheDisplay); } }
Above the code i have so far. It is for a screen update, as the update works it just doesnt refresh the form. Does anyone know what i can do? Thanx George
-
Hi just wondering if there is a simple way to force the form to reload. "this.Refresh()" does not seem to work. nether does "form.Load";
private void VMCU_BlanktheDisplay()
{
try
{
//works but doesnt update screen
VMCU.UpdateDisplay(VMCU.BlankDisplay);this.Load; //this.Refresh(); } catch (Exception) { // raise event with UCC VMCU.UpdateError(cmdError.BlanktheDisplay); } }
Above the code i have so far. It is for a screen update, as the update works it just doesnt refresh the form. Does anyone know what i can do? Thanx George
If you want the form to repaint itself, call Invalidate(). If you want to reset your form to a known state, you need to write code to do that.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
If you want the form to repaint itself, call Invalidate(). If you want to reset your form to a known state, you need to write code to do that.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.