注册表存储字体 [英] Registry Stored Font

查看:77
本文介绍了注册表存储字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速问题:有人知道如何在VB.NET中仅使用一个值将字体保存并加载到Windows注册表中吗?我尝试过用google搜索,但是唯一的结果是其他非.NET语言.我会很感激的!

@First答案:我始终这样做.我想我需要指定尝试找到答案的所有细节.

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.

推荐答案

您可以尝试使用
vb.net的SaveSetting()将设置保存到默认的vb注册表项
getsetting()检索数据

或者,您可以通过
创建并保存自己的子项
创建注册表项
Dim r As RegistryKey
r = Registry.LocalMachine.OpenSubKey("SOFTWARE \ RegisteredApplications \",True)
r.SetValue("WordWrap",1,RegistryValueKind.String)
同样,您可以使用
str = r.GetValue("MicrosoftCorporation")


你可以自己尝试一下
我已将其用于我的应用程序,并且效果很好
但是您必须具有管理特权.:cool:
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:


这篇关于注册表存储字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆