473,785 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Registry in .NET world

In the past I had read that in .NET world there is no need to store data
in the registry, but the applications would have some other independent
way to do that.
What is this way? Suppose we have to save some user configuration of an
application. Where will we save that in .NET?


--
Ioannis Vranos
Nov 17 '05 #1
4 1039

"Ioannis Vranos" <iv*@remove.thi s.grad.com> wrote in message
news:et******** ******@TK2MSFTN GP09.phx.gbl...
In the past I had read that in .NET world there is no need to store data
in the registry, but the applications would have some other independent
way to do that.
What is this way? Suppose we have to save some user configuration of an
application. Where will we save that in .NET?


Take a look at a "Isolated Storage" topic in the MSDN.
--
Vladimir Nesterovsky
e-mail: vl******@nester ovsky-bros.com
home: www.nesterovsky-bros.com
Nov 17 '05 #2
Vladimir Nesterovsky wrote:
What is this way? Suppose we have to save some user configuration of an
application . Where will we save that in .NET?

Take a look at a "Isolated Storage" topic in the MSDN.

If I understood correctly, if for example we want to save some
configuration data of a .NET application in Windows XP ,we will create a
text .ini file or something in <SYSTEMDRIVE>\D ocuments and
Settings\<user> \Application Data?


--
Ioannis Vranos
Nov 17 '05 #3
Ioannis Vranos wrote:
If I understood correctly, if for example we want to save some
configuration data of a .NET application in Windows XP ,we will create a
text .ini file or something in <SYSTEMDRIVE>\D ocuments and
Settings\<user> \Application Data?

In any case we use IsolatedStorage File *. Thanks a lot for the information.


--
Ioannis Vranos
Nov 17 '05 #4
Ioannis Vranos wrote:
If I understood correctly, if for example we want to save some
configuration data of a .NET application in Windows XP ,we will create a
text .ini file or something in <SYSTEMDRIVE>\D ocuments and
Settings\<user> \Application Data?


You can continue doing whatever you're doing now (you can access the
registry through the Microsoft::Win3 2::Registry class), or you can use
isolated storage if you think it's right. Or some other option.

--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
17773
by: Bo | last post by:
I am using RegistryKey.GetValue() method to retrieve values from Windows Registry. I don't know how to read type REG_MULTI_SZ into a string array. I have tried string array = (string) RKey.GetValue(name); But it gave me "Invalid Cast Exception". Please provide C# sample code in your reply. Thank you.
11
2235
by: Larry Bird | last post by:
I'm trying to read a registry key using VB.Net. I have posted the code below that I'm using: Dim DBConnect As RegistryKey = Registry.CurrentUser.OpenSubKey _ ("Software\VB and VBA Program Settings\Mobile Control\SageQuestSetup") Dim AlertDB As String = CType(DBConnect.GetValue("ConnectionString"), String) Public AlertConnectionString As String = AlertDB
17
1606
by: Sam | last post by:
Hi all If I only want to store screen location and size of my application in Windows Registry, which of the keys should I store this info? A sample code is greatly appreciated. Thank you Regards, Sam
2
1694
by: Ralph Malph | last post by:
I am writing a program to backup user files to a network share quick and easy and I wish to include the capability to backup the Registry files such as the SAM, SYSTEM, DEFAULT, etc files. Windows XP won't let you copy them, but there are many programs on the market that can do it such as Veritas Backup Exec, or the Included Microsoft System Restore options so there must be a way to write a program that can gain access to these files for...
7
5516
by: Vernon Peppers | last post by:
I am a newbie with .NET, trying to step up from VB6. I have a need to write to and read from the registry. Config files will not be acceptable due to their lack of security. The registry entry will have to do with the proper registration and purchase of the program. I have the following code in my program: Public Sub SetRegValue(ByVal ValueName As String, ByVal TestValue As Boolean) Dim f As New...
8
1872
by: rbt | last post by:
On windows xp, is there an easy way to extract the information that Python added to the registry as it was installed?
3
2154
by: vighnesh | last post by:
Hai All Can anybody please tell me what are the standard registry locations that are affected by Virus's , Spyware and Adware Programs. Thanks in advance Regards Vighneswar
6
1681
by: JOSII | last post by:
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList object with 10 string items into the registry and retreive them later. I tried this: key.SetValue("lstNSXitems", lstNSX.Items) where "lstNSXitems" is the name of the subkey, and lstNSX.Items is the
20
3801
by: Newbie Coder | last post by:
MFC Application VC++.NET 2003 I have a certain registry key (HKCU\Software\MyKey) that contains between 30 & 64 string values I need to write a '*' to all those 30 - 64 string values under that particular key. Example:
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.