Like Luc said, show some actual code. Also, how do you update the progress changed?, do you just pass it the current position in the iteration (i am guessing you're using a loop somewhere) or the actual percentage complete?, there is a difference.
error: object reference not set to an instance of an object
i'm getting this error. Please tell me how to correct this.
I've created a cellcontentclick event to get the row and column index where the checkbox is checked now i want to get the particular column value at this rowindex. As i want to get the address column data corresponding to the row in which checkbox is checked.
I'm writing application with very complex configuration (System.Configuration). I need to pass ConfigurationSection or ConfigurationElement inherited class object as a method argument, but method executes in separate AppDomain, since neither ConfigurationSection nor ConfigurationElement doesn't inherit from MarshalByRefObject classs I constantly get a SerializationException exception.
If I add SerializableAttribute to my configuration section it works, but I can't modify any variable.
Use the System.Diagnostics namespace. It includes the Process object that lets you run external programs.
Process p = new Process("notepad.exe");
It also includes methods such as WaitForExit() that tells your program to wait till the process it terminated, and also the 'StartInfo' that lets you set customized settings for running a program. Browse the namespace for more details.
Hi, I have a grid (4 rows x 5 columns). I need to sort grid by last column. But I want to trace what changes were made to row order. I need this info to:
1. Change row header's text 'cause it doesn't change automatically during sort.
2. Change the columns order, i.e. I have rows 1,2,3,4. After sorting I have 2,3,1,4. And I want my columns moved in that way: 2,3,1,4 (with DisplayedIndex property for example)
Thanks for the reply. I understood. but what about the situation when I had special characters like < in my html so when < is encoded to < and stored in xml, it will be mixed up with the < chars and when it is decoded, both encoded < and original < will be decoded to < character, right ? So, what is the effcient solution about this scenario ?
An XML file is not line based, so reading it line by line doesn't make sense. An XML file is just as valid if it looks like this:
or like this:
Use an XmlDocument object to read the file.
The DocumentElement property gives you the root node, from there you can navigate the tree structure using the FirstChild or ChildNodes properties. When you reach the node containing the nodes that you want, the ChildNodes property gives you a collection of all the nodes.
Another alternative to get the nodes from the XmlDocument is to use an xpath expression with the SelectNodes method.
Despite everything, the person most likely to be fooling you next is yourself.