Home All Groups Group Topic Archive Search About

reuse form objects like a class

Author
15 Jan 2006 10:03 PM
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,

Author
15 Jan 2006 10:05 PM
Herfried K. Wagner [MVP]
"matt" <nospam@nobody.com> schrieb:
> 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...".

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
15 Jan 2006 10:24 PM
matt
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:u3Nt4%23hGGHA.344@TK2MSFTNGP11.phx.gbl...
> "matt" <nospam@nobody.com> schrieb:
>> 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...".
>
Wow, quick response and EXACTLY what i was looking for.  Thanks!