Results 1 to 8 of 8

Thread: registry check - freezing me

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    registry check - freezing me

    basically this is lagging my pc up when the registry has 0 entries in the key

    VB Code:
    1. Private Sub Form_Load()
    2. Dim RegArray() As String
    3. Dim intLoop As Integer
    4.  
    5.  RegArray = EnumKeyValues(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run")
    6.  
    7.  For intLoop = 0 To UBound(RegArray)
    8.      List1.AddItem RegArray(intLoop)
    9.  Next intLoop
    10.  
    11. End Sub

    for e.g, if my HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run has no entries, it will just lag me right down, its like its in an endless loop or something.

    can anyone help me sort this problem out?

    this is the module i use
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width