melissa
04-01-2009, 09:54 AM
hi there
look to this code
tbl_reg = Registry.GetValueNames(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
for j,k in tbl_reg do
ListBox.AddItem("ListBox1", k, "");
end
this code is to get startup application list into Listbox1 , but the problem is
when i click on the button the list appear again and again each time i click
i would like to correct this code and make the list appear one time not many times
thank you
look to this code
tbl_reg = Registry.GetValueNames(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
for j,k in tbl_reg do
ListBox.AddItem("ListBox1", k, "");
end
this code is to get startup application list into Listbox1 , but the problem is
when i click on the button the list appear again and again each time i click
i would like to correct this code and make the list appear one time not many times
thank you