Hi I have a datatable which i can save easily as xml using the following code.
My problem is that i also have a textbox which i would like to save with this datatable. How can i save a datatable + textbox value as one XML file.
Many thank for you replys.
Dim di As DirectoryInfo = New DirectoryInfo("C:\Test") di.Create() With SaveFileDialog1 .InitialDirectory = "C:\Test" .FileName = "" .Filter = "Text files (*.txt)|*.txt|" & "All files|*.*" If .ShowDialog() = DialogResult.OK Then Dim FileName As String = .FileName dt.TableName = "MainData" dt.WriteXml(.FileName) End If End With