多行文本框闪烁 [英] Multiline Textbox Flickering

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

问题描述



我正在尝试实现打字效果以在登录我的应用程序之前显示日志.只是为了在加载文件时提供良好的外观.因此,我放置了一个多行文本框并动态更改了文本.还有带计时器的隐式打字机效果.

我的问题是文本框闪烁...

我所做的是.
我在VS中工作2005.我设计了具有多个TableLayoutPanel的窗体,在该窗体中放置了面板,文本框,标签和其他需要的项目.如果单击登录按钮,标签将显示使用计时器进行验证"(打字机效果).然后面板的背像将闪烁.然后在加载文件时(这不会影响,我检查并消除了这一点),我使用计时器(打字机效果)在文本框中(选定的多行)动态地写了日志.然后只有文本框闪烁,除文本框之外的所有文本框都很好.它应该工作吗?对每个控件的效果如何?

闪烁非常令人恶心!我需要避免!怎么做??

请帮忙.预先感谢
Akeeq

Hi,

I am trying to implement typewriting effect to display log before sign-in into my app. Just for good look and feel while my files loading. So i put a multiline textbox and dynamically changes the text. And implimented typewriter effect with a timer.

My problem is the text box is flickering...

What i was done is.
I am working in VS 2005. I designed the form with multiple TableLayoutPanel where placed the panel, textbox, label and other wanted items. If sign-in button clicked the label shows Verifying using timer (typewriter effect). Then the panels backimage will flicker. Then while loading files (this will not affect, i checked with eliminating this one) i dynamically wrote log using timer (typewriter effect) the progress in the textbox (selected multiline). Then only textbox is flickering, All except textbox is fine.

I tried DoubleBuffering = true and SetStyles(ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint ) to the forms. Is it should work ?. How it done to each controls ?

The flickering is very disgusting !! I need to avoid it !! How it can be done ??

Please help. Thanks in advance
Akeeq

推荐答案

Akeeq,

很难说问题出在哪里.我们需要查看您的代码才能为您提供任何良好的答案或指导.
Hi Akeeq,

It's hard to say where's the problem. We need to see your code to to give you any good answer or direction.


这篇关于多行文本框闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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