【发布时间】:2020-12-24 04:57:18
【问题描述】:
有一种方法可以为控件(例如文本框)创建公共自定义属性吗? 我只想为这样的文本框添加边框颜色:
public property Empty(ValX as Boolean)
if ValX = true then
Screen.ActiveControl.BorderWidth = 10
Screen.ActiveControl.BorderColor = RGB(255, 0, 0)
else
Screen.ActiveControl.BorderWidth = 0
Screen.ActiveControl.BorderColor = RGB(0, 0, 0)
end if
end property
所以我可以这样使用它:
text1.Empty=true
这只是我需要的一个例子.. 提前致谢
【问题讨论】:
标签: ms-access properties controls customization