newbie Preferences question

  • Thread starter Thread starter SStory
  • Start date Start date
S

SStory

Like most, I come from the VB6 world, but am still new.

I was wondering what is considered the best strategy for maintaining user
preferences in .NET

I know that .NET isn't bound by the registry and maybe applications
shouldn't be either. What are most folks doing?

Registry?
Configuration file?

Could you point me to some example code or a reusable class to do this? Not
something I want to think about all the time.

Thanks,

Shane
 
Hello,

SStory said:
Sorry Herfried... My German isn't that good.

What does it say and is it in German?
What should I click? I think maybe the first download option but don't
know.

Click the download link (it's implemented in C#).

I addition, have a look at Jay's reply.

Regards,
Herfried K. Wagner
 
Shane,
Although the site is in German, you can still download & gleam info from the
code.

As for the MSDN site saying it requires XP or 2000 to run. This is not
uncommon. You can still download & gleam info from the code.

Other than I am running at least 2000 or XP Pro on all my machines. Although
it says it needs XP or 2000 to run, the framework can run on ME & 98, with
restrictions. I would try the Configuration Application Block, if I ran in
into one of the restrictions, I would modify the code not to use that
restriction.

For example the Exception Management Application block CAN use the Event Log
to log messages, Event Logs require XP or 2000. If I configure the Exception
Management Block not to use the Event Log, it will run on ME or 98. I
suspect something similar in the Configuration Application Block. I just
have not looked too deeply into the Configuration Application Block source
yet.

Hope this helps
Jay
 
Herfried,

I downloaded the library and code.
Do you have an example that shows how to use it?
I just saw the code to instantiate?

also, do I just copy the .dll file into a certain location to use it?

Am I allowed to freely distribute and use with my application?

Thanks,

Shane
 
Hi Herfried,

Several people have stumbled over your palmbytes references, including
myself.

Might I suggest that you append the following?

The site is in German but the Download link is obvious. Ignore the text
and download the file. It's a zip containing source code and everything's in
English.

Regards,
Fergus
 
Thanks Herfried,

Can you tell me if I just place the dll file somewhere or do I need to
compile something?

If the Dll is already compiled in release mode I suppose I'd just stick it
in my appilcation directory and add a reference.

Anything more I should know?

Danke,
-Shane
 
Hello,

SStory said:
Can you tell me if I just place the dll file somewhere or do
I need to compile something?

If the Dll is already compiled in release mode I suppose I'd
just stick it in my appilcation directory and add a reference.

I didn't test it but I think it should work. I don't know if the DLL is
compiled for .NET 1.0 or 1.1, but I think it's compiled for .NET 1.0.

Regards,
Herfried K. Wagner
 
Hello,

Fergus Cooney said:
Several people have stumbled over your palmbytes references,
including myself.

Might I suggest that you append the following?

The site is in German but the Download link is obvious. Ignore the text
and download the file. It's a zip containing source code and everything's
in English.

That's a good idea.

Regards,
Herfried K. Wagner
 
hmm.

Well I put it on my system and I only installed 1.1 and it works so I guess
that means it is 1.1 right?

seems to work

with just a little looking I think I understand how to do the basic things.

How could I make this work in a multiuser situation--many people on one
computer? How do I change where save properties writes to? By default it
is writing to Options.XML in the app root dir.

Thanks,

Shane
 
Hello,

SStory said:
How could I make this work in a multiuser situation--many people
on one computer? How do I change where save properties writes
to? By default it is writing to Options.XML in the app root dir.

You can save the file to
'Environment.GetFolderPath(SpecialFolder.LocalApplicationData)'.

Maybe it's better to use what Jay mentioned in his posting.

Regards,
Herfried K. Wagner
 
I don't know,

what I got from that sites seems to work fine. It is very compact. I just
thought you might know how to use it is all.

Thanks for the tip. I will experiment.

Auf Wedersehen Mein Freund? (is that right?--it's been since 1991 since I
studied German.)
 
Hello,

SStory said:
Thanks for the tip. I will experiment.

Auf Wedersehen Mein Freund? (is that right?--it's been since
1991 since I studied German.)

Ja, das ist im Grunde richtig:

"Auf Wiedersehen, mein Freund."

Regards,
Herfried K. Wagner
 
Herfried, since you have answered so many of my questions, I'd like to ask
you a new one... off topic a bit for this group, but...

I have a combobox, and I bind it's list elements to some data. However the
text element need to be bound to the data from another table. This seems to
work if the combo box is set so that I can edit the text--because of course
it is letting the text be set to the table and the list just be populated
from wherever.
I would like the user to only choose from the list of elements available--no
new stuff allowed--and if they type a partial piece of text in the combo it
would do a lookup search for all available items.

I had code to do this in VB 6 but do I need extra code to do it in .NET and
what's up with databinding the text part to one table and the list to
another? (I know I can change it to be just a drop down--no typing allowed,
but that isn't the solution I want either--and in doing so it just using a
value from the list and not from the table necessarily--or at least not the
original one chosen.)

Thank for your help,

Shane
 
Back
Top