多线TextBox问题 [英] Multline TextBox question
问题描述
我有一个多行文本框。
文本框的大小应该是75个字符宽,并且
高度为5行,如下所示: -
< --- 75个字符 - >
< --- 75个字符 - >
< --- 75个字符 - >
< --- 75个字符 - >
< --- 75个字符 - >
我用maxlength将字符限制为375(75 X 5)。
我的问题是如何指定布局文本框为75
字符宽,5行高。我能看到的唯一尺寸属性
需要一个像素值,这不适合这里。
谢谢你,
>
加里。
I have a multiline textbox.
The size of the text box should be 75 characters wide, and 5 lines in
height like this: -
<---75 characters-->
<---75 characters-->
<---75 characters-->
<---75 characters-->
<---75 characters-->
I have used maxlength to limit the characters to 375 (75 X 5).
My question is how to I specify the layout of the textbox to be 75
characters wide and 5 lines in height. The only size property i can see
takes a value in pixels, which isn''t suitable here.
Thankyou,
Gary.
推荐答案
ga ******** @ myway.com 写道:
ga********@myway.com wrote:
我的问题是如何指定文本框的布局为75
字符宽,5行高。我能看到的唯一尺寸属性
取一个像素值,这不适合这里。
My question is how to I specify the layout of the textbox to be 75
characters wide and 5 lines in height. The only size property i can see
takes a value in pixels, which isn''t suitable here.
有列和行属性。
There are Columns and Rows properties.
有?它们不会显示在属性窗格中,当我尝试使用textbox.Columns或textbox.Rows以编程方式访问它们时,它们无法访问
?
你能告诉我如何进入这些房产吗?
谢谢,
Gary 。
marss写道:
There are? They don''t display in the property pane, and when i try to
access them programmatically using textbox.Columns or textbox.Rows they
aren''t accessible either?
Can you tell me how I access these properties?
Thanks,
Gary.
marss wrote:
ga********@myway.com 写道:
ga********@myway.com wrote:
我的问题是如何指定文本框的布局为75
字符宽,5行高。我能看到的唯一尺寸属性
取一个像素值,这不适合这里。
My question is how to I specify the layout of the textbox to be 75
characters wide and 5 lines in height. The only size property i can see
takes a value in pixels, which isn''t suitable here.
有列和行属性。
There are Columns and Rows properties.
ga **** **** @ myway.com 写道:
有?它们不会显示在属性窗格中,当我尝试使用textbox.Columns或textbox.Rows以编程方式访问它们时,它们无法访问
?
你能告诉我如何进入这些房产吗?
谢谢,
Gary 。
There are? They don''t display in the property pane, and when i try to
access them programmatically using textbox.Columns or textbox.Rows they
aren''t accessible either?
Can you tell me how I access these properties?
Thanks,
Gary.
如果您编写Web应用程序:
http://msdn2.microsoft.com/en-us/lib...x.columns.aspx
http ://msdn2.microsoft.com/en-us/lib...tbox.rows.aspx
但现在我想你写Win Application。 :(
If you writing Web Application :
http://msdn2.microsoft.com/en-us/lib...x.columns.aspx
http://msdn2.microsoft.com/en-us/lib...tbox.rows.aspx
But now I guess you write Win Application. :(
这篇关于多线TextBox问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!