Hi,
I have a very strange problem which i hope someone can help shed light on.
I have a Windows Forms application which provides data-entry UI. Data
inputted is then stored into a DataSet which will be persisted into a XML
file using the WriteXML method.
The Dataset which contains a Filename data column (type = string); A user
selects a file using the OpenFileDialog component. The file name is
displayed in a textbox until the user clicks on the Save button.
PROBLEM:
If the file is selected using the OpenFileDialog.ShowDialog() method, the
file name is added to the dataset, but it is not written to the XML file.
However, if the filename is manually typed into the textbox, saving to XML
file succeeds.
Further tests shows that this problem only shows up in WinXP system.
Machines running 2000 saves the XML file just fine. In the event of failure,
no exceptions nor errors are shown.
This is a very strange problem, any help will be very much appreciated!
Thanks,
nick