Example #1
0
        private void fileSearchBtn_Click(object sender, EventArgs e)
        {
            /*
            File search button code
            */
            ClientMethods cm = new ClientMethods();

            /*
            (C)lient (F)ile (R)equest
            The 'CFR' keyword is used by the server to identify that this is a request call
            made by the client form for a file hosted by another client.
            */
            String sendString = "CFR," + fileSearchBox.Text + "," + GetIpAddress();

            // Clear the textbox
            fileSearchBox.Text = "";

            cm.FileSearch(tcpServer, sendString);
        }