vb.net - working with variables -


i new .net , wondering how add 2 registry search items own variable?

e.g. using below code, software\test2 , software\test1 put own variable if found can use in section of code removal.

the code using is:

if microsoft.win32.registry.currentuser.opensubkey("software\test2") nothing label2.text = ""else listbox1.items.add("software\test2")         if microsoft.win32.registry.currentuser.opensubkey("software\test1") nothing label2.text = "" else listbox1.items.add("software\test1") 

when call opensubkey, return registrykey object subkey opened. first thing assign result of function variable. can call getvalue on registrykey , assign result of function variable.


Comments

Popular posts from this blog

android - Automated my builds -

python - How to return the most similar word from a list of words? -

apache - GeoServer under https -