How To Copy Object to object in VB?

sjchin

Newcomer
Joined
Mar 21, 2003
Messages
22
Assume i have 2 form(formA and FormB), both also contain it's own Listview, My question is in FormA i have set all the columns, add data in the listview, do we have any command to set FormB listview same as FormA listview by click 1 button instead to run again the routine to add all columns and header to listview in FormB?
 
copy the LV and paste it on the 2nd form....it'll keep the structure you'll just have to rename it.
wierd question..how come u havent tried?
 
write a class that takes the container (as control) in the constructor. and even coordinates if u want.
write a routine that implements the LV you like and add it to the container that was passed by ref at the desired coordinates.

call this class from any form by calling new LV(ctype(me,control), coordinates)...
 
Back
Top