本文介绍了将图形封装在类中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将所有与绘图有关的例程放在与Form1类分开的类中.该图形将绘制在表单上的面板上.我有一个尝试执行我想要的操作的测试代码,但是paint事件处理程序无法正常工作.有人解决方案吗?

I wish to put all routines having to do with graphing in a class separate from the Form1 class. The graph is to be drawn on a panel located on the form. I have a test code that tries to do what I want but the paint event handler does not work right. Does anybody have a solution?

推荐答案



这篇关于将图形封装在类中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 11:02