thanks dhaim! I am going to give the code example a shot
shwaguy
Posts
-
reseting forms -
reseting formsThanks for the reply smart guy (AKA ass). Want a chance to redeem yourself? What I am asking is a newbie question and I have no idea how to go about reseting a whole group of textboxes. Questions I have asked myself: Is it possible? Is it a built in function of the MS C# IDE like "groupbox1.child.text = ""? looking for some help and not smart ass comments. tia shwaguy
-
reseting formsI did do a google search and looked at a few books but am stuck. I have a form that I want to reset the text boxes on: 1) reset the text boxes within the group box 2) reset the whole form tia! shwaguy
-
c# service accountsanyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? FTARH was a great movie
-
interpret address locationsOK....I am familiar on the regular expressions thing. I am looking for a library that already has done this. What does Google do? Does it use a database? shwaguy
-
c# service accountsUsing c# 2005 Express Edition: I am writing a service that copies files to an AD share and am having a bit of a problem with the .net built in accounts with the windowsinstaller and framework found here: http://www.codeproject.com/KB/system/WindowsService.aspx[^] I was told (by a network admin) that the "localService" account will provide the computers credentials when accessing AD shares, but, the IDE states that I am supposed to be using the "NetworkService" account. The "NetworkService" account fails and .net puts an error in the event log: [code] EventType clr20r3, P1 windowsservice.exe, P2 0.0.0.0, P3 480d4ccb, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 32f8, P8 15a, P9 system.unauthorizedaccess, P10 NIL. [/code] Other than having to run my code in a seperate thread and this account thing I have not come across any unexpected issues; posting code is not going to help with this one (yeah, I am a bit lazy too) I do not have access to an AD at this point and am looking for some general advice from those in the know. Thank you for reading. shwaguy
-
interpret address locationsI have a spread sheet of addresses that are in different formats. Some of the addresses include cities or zip codes or floors or units, the formats for floor is "flr" or "floors" or "flrs"...I think you can see what I am getting at. Is there a good parser library out there for use? shwaguy
-
whats the name of that book?thanks guys!
-
whats the name of that book?Whats the name of that book/bible that everyone seems to refer to for best coding practices? shwaguy
-
updating parent form from child objectthanks for the reply. I still do not know how do what I need to do, but I think I might be on the right path now. I never had to fire events before, I guess I am about to learn. shwa guy
-
updating parent form from child objectUsing C#.net express edition I created an application that has the main code in the parent form. In this form I create an object and I want that object to change values in the parent form before the object returns a value (I am doing a progressbar). I could create a form object from the child object but that would not look as nice. HELP! shwa guy
-
please delete thread....You just have to feel like your right on this don't you? Here is the news, you are wrong again. The code although correct did not suit my purpose. If you bothered to read the posting you would have noted that I commented out (with comments) the items that would not work, but wanted to work. as previously stated: beat it.
-
please delete thread....Putting aside the 2 replies I got being totally off topic: - "what error message did you get?" - uh...none...I got a null value as stated. - replace code that was stated as working search.Filter = "samaccountname=" + userName; with this other filter that works equally well too (blah, blah, blah). Whats vague about the post?: //this filter works search.Filter = "samaccountname=" + userName; //This below formats for the search filter result in result=null //search.Filter = String.Format("(cn={0})", userName); //code project filter //search.Filter = "cn=" + userName; SearchResult result = search.FindOne(); shwaguy
-
please delete thread....beatit fool....read the code comments of my original code and the posting. Your wrong, stop flaming. I am starting to think taht a large portion of your 3500 posts were garbage posts.
-
please delete thread....thanks for letting me know you will ignore my threads...it was very useful on topic information (sc). I understand that people make mistakes, but, when I get 3 knee jerk responses (responses that have NO input to the question) in a row I tend to figure noone will want to read the thread. I twice stated that there was no issue with the existing code, but, you seemed to miss that. Your ego must be easily bruised if to be hurt by those exclamation marks. -If a response is not the solution thats all good. -If a response is correct solution thats all good. -If the response is off topic becuase the poster did not bother to read the post....I think "I wish that the poster could delete the response, its a waste of reading time and clutters the original post" You take offense way too easily. Just because you have 3500 posts does not mean I am kissing your butt for very poor, of topic, replies. I don't have anything against you either, I think you may have helped a lot of threads. shwaguy
-
please delete thread....Hi Paul, I agree. In this case no solution was found for the original question and the thread turned into an unreadable mess that would only serve to waste the time of someone seeking a solution. Usually, I get good or great responses from this forum. People usually read, think then answer (even if the correct solution is not given). Maybe I just asked on a bad day. shwaguy
-
please delete thread....Thanks, but the userName is valid, it was the first thing I checked: The variable (and query) I used for the search filter worked fine with "FindAll()" The thread is closed now....thanks for the help.
-
please delete thread....I seem to get my feathers up when people reply, with the first thought that comes into their head, without actually reading the original post; it tends to destroy a thread. Your post was not so bad, simple mistake...but 2 replies in a row (one not yours) that went down the same path is a bit frustrating. Usually when a thread gets to 2 like this I never get an answer to the question......so I will ask later. thanks shwaguy
-
please delete thread....thanks for the reply, but there is nothing wrong with the code as it is posted!!! Using "samaccountname" as the filter criteria works everytime (read the code comments). Using anything else fails, I have tried fully compliant LDAP queries too. I have no issue with the FindAll() method but would like to use this one (I figure that it is faster). help!!!! shwaguy
-
please delete thread....I thought the original posting was pretty clear: -The code works as is, but, when substituting the commented out filters for the working one it fails -The code fails becuase "SearchResult result = search.FindOne();" results in "result = null" -There is no error message, a null value is returned -I am using VS C# Express 2005 and have reinstalled and restarted the PC If there is a better way to trouble-shoot let me know, I need all the help I can get. thanks, shwaguy