Set DrawMode to 2 Or 3 to Update Changes to Graph at Run Time (96450)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0

This article was previously published under Q96450

SUMMARY

Changing properties of the graph control at run time does not update the control until DrawMode is set to 2 (Draw) or 3 (Blit).

MORE INFORMATION

The DrawMode property documentation states that at design time, when you change a property value, the graph is automatically redrawn to show the effect of the change. At run time, the graph is only redrawn when you set DrawMode to 2 or 3. This allows you to change as many property values as you want before displaying the graph. However, when the form containing a graph is first displayed, the graph is automatically displayed according to the current DrawMode value.

For more information, see the "Microsoft Visual Basic Programming System for Windows Professional Edition Professional Features," version 2.0, "Custom Control Reference," pages 149-150.

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:KB96450