Array or multiple components??

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 89
Reputation: raul15791 is an unknown quantity at this point 
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Array or multiple components??

 
0
  #1
Apr 6th, 2009
Hi,

If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient??

1. Drag and drop the component 20 times. Configure their properties one by one.
2. Declare array of that component (for e.g: Private many_label(8) As Label) which configuration of properties is only done once.

I know each of them got their own pros and cons. In terms of processing and efficiency?? Which better??
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 329
Reputation: cikara21 is an unknown quantity at this point 
Solved Threads: 63
cikara21's Avatar
cikara21 cikara21 is offline Offline
Posting Whiz

Re: Array or multiple components??

 
0
  #2
Apr 7th, 2009
First choices..That'll makes your live easier..
Last edited by cikara21; Apr 7th, 2009 at 5:26 am.
.:-cikara21-:.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 89
Reputation: raul15791 is an unknown quantity at this point 
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Re: Array or multiple components??

 
0
  #3
Apr 7th, 2009
Lol.... In terms of performance and efficiency?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC