Windows窗体重绘Bug

Windows窗体重绘Bug

本文介绍了Windows窗体重绘Bug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 我已经向微软.Net团队发送了一个严重的错误,以便在2年前解决它。此错误尚未解决且没有解决方法。              错误描述如下: - 1.   制作具有常规设置的新Windows窗体。 2.   更改 DoubleBuffered 属性为真值 3. 更改 RightToLeft  属性为是 4. 更改 RightToLeftLayout 到真值 5.   Set形式的新颜色 BackColor 属性(例如Gold)               现在运行表格,你会注意到: - 1.   表格有一条黑色细线,显示为非重绘区域。 2.   试用使用其他应用程序或使用"开始"菜单覆盖表单,或者甚至将表单移出屏幕右侧或左侧。您会注意到,不会调用 OnPaint 或 OnPaintBackground 事件来重新重绘表单。 为了更准确,请尝试重载Form OnPaint 或 OnPaintBackground 事件,您将看到它们未被调用。 的              请问如何解决这个问题?是否存在任何解决方法?   '跨度风格= "字体大小:9.0pt;字体家庭:"宋体","无衬线英寸;颜色:黑色">           &NBSP ;  谢谢, Pr.wa'el .Net Professional 解决方案 在connect.microsoft.com上记录错误。  感觉免费链接问题#这里我们可以看到您在寻求从Microsoft获得解决方案时遇到的问题。Hi every one,I had sent a serious bug to Microsoft .Net Team to solve it from 2 years ago. This bug had not been solved and had no workaround.            Bug description is as following:-1. Make New Windows Form with regular settings.2. ChangeDoubleBuffered property to True value3. ChangeRightToLeft Property to Yes4. ChangeRightToLeftLayout to True value5. Set new color to FormBackColor property ( e.g. Gold)            Run the Form now and you will note that:-1. Form has a right thin black line which appears as a non-repainted area.2. Try to overlay the Form with another application or with Start menu or even move the Form outside the screen to the right or left side. You will note thatOnPaint or OnPaintBackground events are not called to redraw the form again.To be more accurate, try to overload FormOnPaint or OnPaintBackground events and you will see they are not called.            Please how to solve this problem? Does there exist any workaround?             Thank you,Pr.wa'el .Net Professional 解决方案 Log the bug on connect.microsoft.com.  Feel free link the issue # here so we can see what you're up against in your quest to get a resolution from Microsoft. 这篇关于Windows窗体重绘Bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 08:23