delete register value

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

delete register value
Dummy1912
hello,

seems we don't understand it why it wont work with a label

this works fine
Code: Select all
regKey.DeleteValue("testing only2", False)
this won't work it don't remove it
Code: Select all
regKey.DeleteValue(lblname.Text, False)
why can't i use a label.text with a text to remove the value from the register?

can someone helpme out please

thanks you
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: delete register value
CodenStuff
Are you sure the label text is the correct value you're trying to delete?

Maybe lblname.Text.Tostring()
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
kolega28
VIP - Donator
VIP - Donator
Posts: 338
Joined: Mon Jan 17, 2011 7:12 pm

Re: delete register value
kolega28
Have you tried:
Dim label As lblname.Text.Tostring() ?
it could be something trivial like wrong label name, wrong text in the label (like an extra space), does it throw any errors or does it just not delete it?
Image
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: delete register value
Dummy1912
seems working
it looks like the label text has a name instead of the value
so we have fixt it

thanks guys ;)
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
4 posts Page 1 of 1
Return to “Coding Help & Support”