*****绘画中的问题!!! ***** [英] *****problem in painting!!!*****

查看:94
本文介绍了*****绘画中的问题!!! *****的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好 


我制作了一个包含6个标签的Windows表单应用程序,其中一个是绘图标签...


现在我的问题是当ai在此选项卡中绘制一个绘画时,如果我在其他标签之间切换


绘制的绘画将被删除。  


问题是什么?如何解决此问题?

解决方案

绘画必须在
期间完成绘制相应标签页的事件。在表单设计器中添加此类事件,然后放置一些示例图纸以查看它是否有效。


通常绘画取决于一些细节。您可以为这些数据添加一些成员变量。当您需要新图像时,请设置这些变量,然后调用
tabPageX.Invalidate()




hello 

I've made a windows form application that include 6 tabs , which one of them is the paint tab ...

now my problem is that when a i draw a paint in this tab if i switch between the other tabs

the drawn paint will be erased.! 

what is the problem and how can i resolve this problem?

解决方案

Painting has to be done during the Paint event of the corresponding Tab Page. Add such event in Form Designer, then put some sample drawing to see that it works.

Usually painting depends on some details. You can add some member variables for these data. When you need a new image, set these variables, then call tabPageX.Invalidate().



这篇关于*****绘画中的问题!!! *****的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆