4 Replies - 386 Views - Last Post: 17 February 2013 - 11:10 AM Rate Topic: -----

#1 Bhram  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 43
  • Joined: 17-February 13

view key registry in listview ?

Posted 17 February 2013 - 04:35 AM

hi ,
i have problem with code add registry in listview
   Dim view() As String
        View = Registry.CurrentUser.OpenSubKey("Software\Microsoft", False).GetSubKeyNames
        For x As Integer = 0 To view.Count - 1
            Dim lv As New ListViewItem
            lv.Text = view(x).ToString
            ListView1.Items.Add(lv)
        Next

see this picture
Posted Image

what's problem with ((view.Count - 1))
??

Is This A Good Question/Topic? 0
  • +

Replies To: view key registry in listview ?

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3333
  • View blog
  • Posts: 11,296
  • Joined: 12-December 12

Re: view key registry in listview ?

Posted 17 February 2013 - 05:51 AM

Point your mouse at the word Count, or click on it; what message does it show?
Was This Post Helpful? 0
  • +
  • -

#3 Bhram  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 43
  • Joined: 17-February 13

Re: view key registry in listview ?

Posted 17 February 2013 - 08:57 AM

View Postandrewsw, on 17 February 2013 - 05:51 AM, said:

Point your mouse at the word Count, or click on it; what message does it show?



this Posted Image
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3333
  • View blog
  • Posts: 11,296
  • Joined: 12-December 12

Re: view key registry in listview ?

Posted 17 February 2013 - 10:12 AM

Use .Length for an Array.
Was This Post Helpful? 1
  • +
  • -

#5 Bhram  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 43
  • Joined: 17-February 13

Re: view key registry in listview ?

Posted 17 February 2013 - 11:10 AM

View Postandrewsw, on 17 February 2013 - 10:12 AM, said:

Use .Length for an Array.



it's work thank you very match
:innocent:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1