Hi. I dont know many things and i try only to read a value in registy. The value i try to read is here HKEY_CURRENT_USER\System\State\Phone\"Missed Call Count" NAME =Missed Call Count TYPE=DWORD VALUE=0 I try this Code: Sub Globalsnumber = 0End SubSub App_Start form1.Show reg.New1 reg.RootKey(reg.rtCurrentUser) number=reg.GetValue("System\State\Phone", "Missed Call Count") TextBox1.text = number Msgbox("The value is: " & number)End Sub And i get a error message for line number=reg.GetValue("System\State\Phone", "Missed Call Count") "object reference not set to an instance of an object" I have create an object reg:Registry Can anyone help? Thanks alot.. *** edit I put it in the phone and it worked so forget the above!!