|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
reuse form objects like a classis 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" <nospam@nobody.com> schrieb: "Project" -> "Add user control...".> 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. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message Wow, quick response and EXACTLY what i was looking for. Thanks!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...". > |
|||||||||||||||||||||||