Heres all the code in a module.
--------------------- IconTextBox Custom Control DropDown ListView Custom Control
The link in my sig fully uses API
Oh I see how it works now, but how can I check if a key exists? I'm using the read function but I am confused, can you give me an example?
Did you find a post in this thread useful? Please click Rate This Post.
Sure bro, VB Code: Private Function KeyExists(Hkey As String, Section As String, Valuekey As String) As Boolean On Error Resume Next Set Reg = New cRegistry Reg.ClassKey = Hkey Reg.SectionKey = Section Reg.Valuekey = Valuekey If Reg.Value <> Empty Then KeyExists = True End Function
Private Function KeyExists(Hkey As String, Section As String, Valuekey As String) As Boolean On Error Resume Next Set Reg = New cRegistry Reg.ClassKey = Hkey Reg.SectionKey = Section Reg.Valuekey = Valuekey If Reg.Value <> Empty Then KeyExists = True End Function
Forum Rules