Powershell 1.0中的表单字体 [英] Form Fonts in Powershell 1.0

查看:99
本文介绍了Powershell 1.0中的表单字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Powershell 1.0中创建了Form。它包含50个控件,如标签,单选按钮,编辑框。我必须将特定字体应用于所有这些控件。现在我将字体应用于个人控件。我想一次将字体应用到所有控件。

解决方案

你好,



指定字体在你的表格中它会将它应用到所有表格的控件上。

对于eaxmaple这样的东西会起作用:



< pre lang =vb>


form1.Text = 我的PowerShell窗口


form1.Name = form1

I have created Form in Powershell 1.0. It contain 50 controls like Label, Radio Button, Edit Box. I have to apply the specific font to all these controls. Now i am applying font to individual control. I want to apply font to all control in one time.

解决方案

Hello,

Assign the font to your form and it will apply it to all the form''s controls.
for eaxmaple something like that will work:


form1.Text = "My PowerShell Window"


form1.Name = "form1"


这篇关于Powershell 1.0中的表单字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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