There's a new .STRINGNET to the username?
Missing spaces in New Folder and video capture.
There is a reason I said to use the specialfolders enum and even provided a link to it.
Honestly, I think you just have no idea where your folders are or what the real path is.
You also don't seem to want to take the time to go through the debugging tutorials and learn how to check the values of variables at run time. If you had, you could quickly check if "files" ever gained any paths.
This is all just a bunch of guesswork on your part. And there is no way we can guess from here.
It seems you're just throwing a bunch of mysterious code in and hoping it somehow magically starts working. You can't just grab a bunch of code from the internet and think its going to automatically fit together like Lego blocks when you have no comprehension of what C# is or what you're doing.
For now, just work on learning C#. Do tutorials. Read self-learning books. But stop trying to design a program from scratch until you learn more.
My standard beginner resources post - Updated DEC 2012
You can try to learn C# by dismantling snippets and googling terms - basically you can take a hit-n-miss, shotgun approach. Or you could just follow a proper training program whether it be a couple intro books, school, on-line course or series of tutorials like the ones we offer. I'll tell you from experience that just fumbling around in the dark and trying to teach yourself with no guidance doesn't work. Its like stumbling across a Harrier Jump Jet and trying to teach yourself how to fly with no background in piloting: You simply lack any groundwork to start from. How can you lay out your own training course if you don't already know the material? Would you go to a university where the teacher says "I don't know any of this but we'll fumble through it together?"
We have a tutorials section and a learning C# series of articles.
First learn the language by working 2-5 "Learn C# in 30 days" type books cover to cover. Do a couple hundred on-line tutorial projects where you build what you're told to build, the way you are told to build it WITH AN EXPLANATION OF WHY so you can learn.
There are three routes people seem to take when learning programming.
- Just start trying to create programs
- Start taking apart other programs and try to figure out the language by reverse engineering
- Follow a guided learning course (school or self-teaching books)
For the life of me I can't figure out why people try 1 & 2. I strongly suggest taking the guided learning approach. Those book authors go in a certain order for a reason: They know what they're doing and they know the best order to learn the materials.
You start by learning a coding language FIRST.
Learn to plan before you type.
THEN you start designing software with a purpose.
If this sounds like you
Otherwise, you can just jump to the resources here:
Some of the tutorials below are for C# or Java not C, C++, VB.NET [...]. But the conceptual stuff of classes, object oriented design, events etc. are not language specific and should give you enough guidance in theory of program development for you to be able to look-up specific code example in your chosen coding language.
Resources, references and suggestions for new programmers. - Updated Oct 2012