Sign in to follow this  
Ced1

[.net] Buttons and Icons, and XML

Recommended Posts

OH MY! Erm. A few question, first the easy one, where is a good place to learn about parsing XML files in C# ? Just cant seem to get the hang of it on my own, a few good XML tutorial resources would be nice too, I'm only a little familiar with the markup and I dont know much about DTDs or Schemas. Next one(Totally OT) is about loading standard buttons and Icons (like in shell32.dll) using C#. I figured there must be some specific IDs or something(like IDI_WINLOGO, or the normal folder/open/save icons on toolbars) for loading standard buttons and icons in Win32 that I could use to import into C#. I hope you understand what I mean, just say so if I need to try and make myself clearer. Thanks, Ced

Share this post


Link to post
Share on other sites
Well, what are you trying to do with the XML? If you're looking for configuration files, .NET has a very nice AppSettings class that will handle the config for your application. There's a nice wrapper for it here.

Share this post


Link to post
Share on other sites
Quote:
Original post by Rob Loach
Well, what are you trying to do with the XML? If you're looking for configuration files, .NET has a very nice AppSettings class that will handle the config for your application. There's a nice wrapper for it here.


Haha I didn't say did I, wanted to do config and more-so learn to write a schema and parse it with the classes in the System.Xml namespace. More specifically I'm porting an old program of mine used to change wallpapers, and save your favorite ones and stuff. I want to write out the favorite wallpapers(into categories if the user desires) along with display preferences(stretched, centered, etc.) to an XML file and be able read em back.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this