reuse form objects like a class

  • Thread starter Thread starter matt
  • Start date Start date
M

matt

is there a way to reuse form objects like you would code in a class? Say i
havea groupbox with severl things in it, and i want to display this group
box and components 5 times on the screen, is there a way to declare it and
set the parameters for each one? like box1.label1.text = asdf,
box2.label1.text = text and change the location of each box1.

thanks,
 
matt said:
is there a way to reuse form objects like you would code in a class? Say
i havea groupbox with severl things in it, and i want to display this
group box and components 5 times on the screen, is there a way to declare
it and set the parameters for each one? like box1.label1.text = asdf,
box2.label1.text = text and change the location of each box1.

"Project" -> "Add user control...".
 
Back
Top