Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Quick question: Does anyone know how to, in VB.NET, save and load a font to the Windows Registry using only one Value? I have tried googleing it but the only result were in other, non .NET languages. I'd appreciate it!

@First Answer: I always do that. I guess I need to specify every minutia of what I did trying to find an answer.
Posted
Updated 13-Jul-10 7:25am
v2
Comments
Kschuler 13-Jul-10 12:02pm    
try starting your google search with your language of choice.

http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-us&q=vb.net+load+font+Windows+Registry&btnG=Search&aq=f&aqi=&aql=&oq=&gs_rfai=

1 solution

You can try using the
SaveSetting() of vb.net to save the settings to default vb registry entry
getsetting () to retrive the data

OR you can create and save your own subkey by

creating a registrykey
Dim r As RegistryKey
r = Registry.LocalMachine.OpenSubKey("SOFTWARE\RegisteredApplications\", True)
r.SetValue("WordWrap", 1, RegistryValueKind.String)
similarly U can use
str = r.GetValue("MicrosoftCorporation")


U can try it for urself
I have used it for my application and it works great
But u must have administrative previlages.:cool:
 
Share this answer
 
Comments
Matchlighter 13-Oct-10 1:42am    
I will probably just use the built in Settings stuff in VB.Net. I recently figured out that it should work fine.

Thanks!

P.S. Instead of saving the key in LocalMachine, try putting it in CurrentUser (or whatever it is). That should not require Admin privileges. Although, it will only be readable by that one user.
Be Yourself 15-Oct-10 9:40am    
Thanks......

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900