疯狂的富文本框 [英] Crazy Rich Text box

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

问题描述




我有丰富的文本框问题,有时当表单打开和富文本有文本...所有文本左对齐并让白色空间(点击她显示错误的 ImageShack - Image Hosting :: trueqd2.jpg

但是当我点击富文本框时,没有出现这个问题? (点击此处显示真实的 ImageShack - Image Hosting :: falseig1。 jpg


提前使用Thanx .... :)

Hi,

I have problem with rich text box, sometimes when form open and rich text have Text ... All text was Align to left and let white space (Click Her to show false ImageShack - Image Hosting :: trueqd2.jpg )
But when I click at the rich text box nothing of this problem happen?? (Click here to show true ImageShack - Image Hosting :: falseig1.jpg )


Thanx in advance .... :)

推荐答案

我的意思是所有文字都是左侧缩进。


有任何帮助吗?
I mean that All text was Indent to left .

Any Help please ?


您能否提供用于创建TextBox的代码,以及将文本放入盒子?


虽然我没有看到图片中的语言,但我可以看到每一行在两张照片中都是完全相同的。这看起来很奇怪,因为这只是文本缩进文本应该包装的情况,使下面的行从文本中的不同位置开始。


我也注意到出现第二个框,好像文本是在下滑动垂直滑块。这个滑块是否真的是TextBox的一部分,还是它与文本框绑定的单独控件?


当然如果问题只发生在RichTextBox上没有点击(没有没有焦点然后你可以在表单加载完成后将焦点分配给RIchTextBox。这不是原因的解决方法,它只是症状的绷带。
Can you provide the code you are using to create the TextBox, along with the code for putting the text into the box?

While I don''t read the language in the images I can see that each line starts exactly the same in both photos. That seems odd because of this was just a case of the text being indented the text should have wrapped, making the following lines start at different places in the text.

I also notice that the second box appears as if the text is "slipping under" the vertical slider. Is that slider really part of the TextBox or is it separate control you have tied to the textbox?

Of course if the problem only happens with the RichTextBox isn''t clicked on (doesn''t have focus) then you could assign focus to the RIchTextBox when the form is done loading. That isn''t really a fix for the cause, its just a bandage for the symptom.


你能提供用于创建文本框的代码吗?


没有用于创建Rich Textbox的特定代码只需从工具箱中拖放即可。


将文本放入框中的代码?
Can you provide the code you are using to create the Textbox ?

There is no Specific code using to create Rich Textbox just drag and drop from toolbox.

Code for putting the text into the box?
展开 | 选择 | Wrap | 行号


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

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