Search results for query: *

  1. L

    Can I set a method to only work for a certain property in my custom class?

    Thanks jmcilhinney! I appreciate the info.
  2. L

    Can anyone look at my code and tell me how I messed up my class?

    Wim, I see what you did there, and that is EXACTLY what I was wondering about... how to have the methods make the changes to the properties :), I understand it now. ok 2 things.... I am not showing any errors on my rename() method.... so you will have to elaborate. and number 2.... you think I...
  3. L

    Can I set a method to only work for a certain property in my custom class?

    Well, I have about 10 properties in my class, and the rename() method as well. What I was curious about, is there a way to write the method, that it would only be available to be used with the profile property? For instance, when you type path.profile. the intelli-sense would give the rename ()...
  4. L

    Custom text file name

    I looked at your other post, where you showed the windows form you use. Not sure what you want to name the text file after, but for the sake of the example, let's use the students name. What you will need are the control names for the student's name and the roll number, from your form. For this...
  5. L

    Can anyone look at my code and tell me how I messed up my class?

    wim, first of all a big thank you for the work you put into your reply. Your information was very very helpful, and my understanding of the Static Keyword was not that in depth, and now I really understand how it effects a method. I think your first comment was due to me not copying the entire...
  6. L

    Can anyone look at my code and tell me how I messed up my class?

    Comments explain how its messed up, or what is going wrong, but I don't know what I did wrong. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace testappForHDProgram { class Program {...
  7. L

    Can I set a method to only work for a certain property in my custom class?

    I would like the rename method (only method I have so far) to ONLY be able to be used for path.profile property. Is this possible? class paths { public string profile { get; set; } public string profileV2 { get; set; } public string profileOld { get; set; }...
  8. L

    How do I Compile my Program?

    I am just learning C#, I used to mess around in C and C++ maybe 10 years ago, maybe less, but its been awhile. So, I been studying C#. I have been working on a program, and it is a C# program in a WPF template. I got it to a point now, where I want to compile it to an .exe so I can copy it to...
  9. L

    Directory.Exists with a wildcard? Can this be done?

    OK, finally tracked down my mistake that was messing up my program, and got it working. I would like to post it here and let you guys see it and tell me how I could of done this better, so I can learn. Let me know how I did for a newb :). private bool checkpath(string path) {...
  10. L

    Directory.Exists with a wildcard? Can this be done?

    Thanks! I am working on the easy part of this project now hehe, deleting the folders I know of... that part is the next step, where I go into another folder system and delete everything EXCEPT certain items hehe. That part will be much tougher. Heck I'm having a hard enough time with what...
  11. L

    Directory.Exists with a wildcard? Can this be done?

    Got another question. How can I most easily accomplish this task. I want to delete every folder inside a directory, EXCEPT these fodlers: i. Access (contains macros) ii. Excel (contains macros) iii. Internet Explorer (contains background files & Quick Launch shortcuts) iv. Outlook (contains...
  12. L

    Directory.Exists with a wildcard? Can this be done?

    OK, sorry about that. I could not figure out your for all command usage, but I did figure out how to accomplish the task of finding the ever changing filename and deleting it. string path = textbox1.text + "\\"; string[] icaclients = Directory.GetDirectories(path, "ICAClient*"); foreach...
  13. L

    Directory.Exists with a wildcard? Can this be done?

    Hi, and thank you for assiting me. First off what I need to do, since I am very new to C# and there is almost certainly a better way to accomplish the task I am trying to accomplish. First, the user will supply a path to a directory. For example: \\server\users\name Now, I want to delete...
  14. L

    Question Better tool to build a profile rebuilding tool with?

    I want to build a tool to rebuild profiles. Essentially it would rename the profile folder on a server, delete a lot of folders and files from the user folder on the same server, just a different folder, and delete the locally stored cached profile from the remote PC. My question or questions...
Back
Top Bottom