garydp
04-22-2014, 08:26 AM
Hi,
I have created a form and at runtime it creates a listview using the following
Set lstequip = Controls.Add("MSComctlLib.ListViewCtrl.2", "ListView1")
is there a way of adding a double click event to the listview?
before i used to add the listview at design time and when the program was run and the listview was populated i could double click on one of the lines and open up a different form. I havent been able to work out how to do this when its created at runtime.
I have created a form and at runtime it creates a listview using the following
Set lstequip = Controls.Add("MSComctlLib.ListViewCtrl.2", "ListView1")
is there a way of adding a double click event to the listview?
before i used to add the listview at design time and when the program was run and the listview was populated i could double click on one of the lines and open up a different form. I havent been able to work out how to do this when its created at runtime.