GXDN: Gurux Developer Network
Close Method
NamespacesGurux.FileGXFileClose()()()
Closes the file watcher.
Examples
CopyC#
                /// <summary>
/// Close connection to the file.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void CloseBtn_Click(object sender, EventArgs e)
{
    try
    {
        gxFile1.Close();
    }
    catch (Exception Ex)
    {
        MessageBox.Show(this, Ex.Message);
    }
}
CopyVB.NET
                ''' <summary>
''' Close connection to the file.
''' </summary>
Private Sub CloseBtn_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CloseBtn.Click
    Try
        GxFile1.Close()
    Catch Ex As Exception
        MessageBox.Show(Ex.Message)
    End Try
End Sub
CopyVBScript
                'Close connection to the file.
Private Sub CloseBtn_Click()
On Error GoTo GXErr
    GXFile1.Close
    Exit Sub
GXErr:
    MsgBox Err.Description
End Sub
See Also

Assembly: Gurux.File (Module: Gurux.File) Version: 5.0.0.1