本文介绍了最小化时,标签上绘制的文本会消失,然后将窗口恢复到正常状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个视觉基本程序(VS 2013 Professional),为了显示目的,它在设计器中创建的许多标签上绘制文本。最小化时绘制的文本消失,然后将窗口恢复正常。 我希望文本
与表单的其余部分一起重新显示,从最小化状态恢复。 我创建了一个子程序,通过单击表单中的任意位置来重绘文本,但这似乎是解决此问题的一个不合理的解决方案。


我已经尝试重新绘制为多个事件创建的子程序中的文本的形式,如Activate,Resize和ResizeEnd,无济于事。 这些都不起作用。 如果有任何见解导致解决这个问题,我将不胜感激。 
谢谢。




Earl Whitney

解决方案

I have written a visual basic program (VS 2013 Professional) that, for display purposes draws text on a number of the labels created in the designer. The drawn text disappears when minimizing, then restoring window to normal.  I would like the text to reappear along with the rest of the form when it is restored from minimized status.  I created a subroutine that redraws the text by clicking anywhere in the form, but that seems an inelegant solution to this problem.

I have tried redrawing the text in subroutines created for a number of events of the form, like Activate, Resize and ResizeEnd, to no avail.  None of these work.  I would be grateful for any insights leading to the resolution of this problem.  Thank you.


Earl Whitney

解决方案


这篇关于最小化时,标签上绘制的文本会消失,然后将窗口恢复到正常状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 13:29
查看更多