Since they're so commonly needed, I have a handy collection of things like signed int, unsigned int, signed float, unsigned float, which do all the validation needed. (Unfortunately it's company code, so I can't give you the source, but they're based on similar ideas to the article linked above.)
It's definitely worth making these once so you'll never be stuck for one again.
There are three kinds of people in the world - those who can count and those who can't...
How can i change the startup mode for services that are already installed in machine using C# code.
i tried using ServiceController class in C# but i was not able to find any method to change the start up method for services that are already installed.
Thanks for reply
but the code that you provided is when we are installing the own service .
My need is i want to change the already installed services , for example windows services are installed with default value . i want to change them .. hope you got my question
OK, so you need to write a method which takes a stringbuilder, or an XML builder or something, and adds the class instance to the XML document being built. Your solution is to manually write code that creates XML, or reads XML and uses it to create a class instance. Ideally, you want to call a method as you iterate over each class instance, and it builds the XML that way.
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
I did DataGridView Search ... As When i type a Text box , the on key up call back Event will filter a Data Grid View Data's ... When i was type the string in fast... Filter for each char So The Searching is very slow and Also Sometimes the Application will hang... How can i Handle this... Or have any other best idea can u share with me