private void saveMultiRowBtnMouseClick(object sender, MouseEventArgs e)
{
MemoryStream ms = new MemoryStream();
this.gcMuliRow1.SaveTextFile(ms);
byte[] byteArray = ms.ToArray();
MemoryStream ms2 = new MemoryStream(byteArray);
using (StreamReader sr = new StreamReader(ms2))
{
MessageBox.Show(sr.ReadToEnd());
}
}
Private Sub saveMultiRowBtnMouseClick(ByVal sender As Object, ByVal e As MouseEventArgs)
Dim ms As MemoryStream = New MemoryStream
Me.gcMuliRow1.SaveTextFile(ms)
Dim byteArray() As Byte = ms.ToArray
Dim ms2 As MemoryStream = New MemoryStream(byteArray)
Dim sr As StreamReader = New StreamReader(ms2)
MessageBox.Show(sr.ReadToEnd)
End Sub