Writing to the registry
Writing to the registry
Writing to the registry
Writing to the registry
Writing to the registry
Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry
Writing to the registry Writing to the registry
Writing to the registry
Go Back  Xtreme Visual Basic Talk > > > Writing to the registry


Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2010, 02:38 PM
sanderson sanderson is offline
Junior Contributor
 
Join Date: Feb 2006
Location: Minnesota, USA
Posts: 217
Default Writing to the registry


Hi:

I just bet the answer to this question already exists, however I saw no search mechanism under the forum.

Anyhow, I would like to change registry data, and this code is asking for an instance to the object.

Dim RegKey As RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey("HKEY_CURRENT_USER\Softwa re\AnyDWGSoftware\DWGtoPDFPro\Settings", True)
RegKey.SetValue("OutputPDFFileOpt", 1)

Finally, I want to apply this setting to the program on four different computers (local, and three others on the network).


Thanks in advance...
Reply With Quote
  #2  
Old 10-28-2010, 09:38 AM
AtmaWeapon's Avatar
AtmaWeaponWriting to the registry AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

You didn't find the text that says "search" in the header, or the thing near the top of the forum that says "search this forum"?

I'm not really clear on what you're asking. It seems like you're asking how to write registry data, but you included code that probably does that. The second almost-question can be deduced as "How do I do this on remote computers?" I don't see anything in the documentation that suggests the Registry class can be used to manipulate the registry on remote machines; you'll have to either visit each computer to apply the setting or look into API calls to work with remote registry keys.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Writing to the registry
Writing to the registry
Writing to the registry Writing to the registry
Writing to the registry
Writing to the registry
Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry Writing to the registry
Writing to the registry
Writing to the registry
 
Writing to the registry
Writing to the registry
 
-->