1) Grid 控件要设置列宽除了用 .colwidth(1) = 1000,能用 formatstring 属性吗?怎么写?2) 要设置窗体上所有的 textbox 的 text 为 "hello"
dim obj as object,fm as form for each obj in fm
if typeof obj is textbox then
obj.text = "hello"
end if
next 在运行时提示“要求对象”的错误。
dim obj as object,fm as form for each obj in fm
if typeof obj is textbox then
obj.text = "hello"
end if
next 在运行时提示“要求对象”的错误。
如果有0-19个textboxFor i=0 to 19
text1(i).text="hello"
For i=0 to 19
text1(i).text="hello"Next
这样自动设置表头,并且宽度恰好合适第二个问题不明白你想要干什么
你可以把它创建一个控件组不就成了,,,