本文介绍了如何在C#winodws表单中设置文本框的文本大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表格,其中有n个高度为9像素的文本框,我想允许文本字体大小为8.5像素但文本框不允许相同。
I have form in which there are n number of text boxses wihch of height 9 px and i want to allow text which is of font size 8.5 px but text box not allowing the same.
推荐答案
textBox1.Font = new Font("Microsoft Sans Serif", 8.5f);
我希望这可以帮到你。
问候
Jegan
I hope this helps you.
Regards
Jegan
这篇关于如何在C#winodws表单中设置文本框的文本大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!