problem to get startup aplications from the registry ( Run )

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jack
    Forum Member
    • Mar 2007
    • 34

    problem to get startup aplications from the registry ( Run )

    hi there

    i tried harder to get a list of startup applications from the registry ( Run ) but i couldn`t

    what i want to do is , when i click on button the startup applications will appear in input

    and my project is easy , it contain :

    1 button

    1 input

    after that i took off the input and i replaced with listbox , and is not working as well

    any one can give me the solution ??
  • TimeSurfer
    Forum Member
    • Dec 2007
    • 479

    #2
    Jack,

    I'm not sure im quite understanding exactly what you're wanting. But here's how to retrieve a list of program names from your startup via registry and put them to a listbox.

    Just add the following code to a button on click event.

    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

    Comment

    • jack
      Forum Member
      • Mar 2007
      • 34

      #3
      thank you TimeSurfer for help ...i will try it

      Comment

      Working...
      X