G
Guest
im trying to write a global function to set controls up throughout a project.
ive managed to create a procedure to set the the basics on each form but
want to expand it to be able to set properties ie colours and text fonts for
each type of control on a form
ie
Public sub setControls( formName as form)
dim CtrlControl as Control
for each CtrlControl in formName.gettype
' what i want to do is a seclect function by each type
select Type
case button
case TextBox
etc
end select
next
end sub
can anybody explain how to do this please
ive managed to create a procedure to set the the basics on each form but
want to expand it to be able to set properties ie colours and text fonts for
each type of control on a form
ie
Public sub setControls( formName as form)
dim CtrlControl as Control
for each CtrlControl in formName.gettype
' what i want to do is a seclect function by each type
select Type
case button
case TextBox
etc
end select
next
end sub
can anybody explain how to do this please