本文介绍了以编程方式更改texbox的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这很简单,但事实并非如此。我怎么用
以编程方式将文本框的宽度缩小20像素呢?


TextBox1.Width = TextBox1.Width - 20;


不起作用。


提前致谢!


-

I thought this would be straightforward but it''s not. How do I
programmatically reduce the width of a textbox by 20 pixels, say?

TextBox1.Width = TextBox1.Width - 20;

doesn''t work.

Thanks in advance!

--

推荐答案







这篇关于以编程方式更改texbox的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 07:28