窗体上有多个Button,定义一个变更getbt循环引用每个Button的属性;
Dim pp As Object =“Button变量”
Dim getbt As Button = New Button()
getbt = DirectCast(pp, Windows.Forms.Button) //类型转换有误;getbt为空值;
用getbt如何引用每个Button属性;
窗体上有多个Button,定义一个变更getbt循环引用每个Button的属性;
Dim pp As Object =“Button变量”
Dim getbt As Button = New Button()
getbt = DirectCast(pp, Windows.Forms.Button) //类型转换有误;getbt为空值;
用getbt如何引用每个Button属性;