File Upload in C# windows Application

c#, winforms

Solution

After you put a OpenFileDialog control on your form, let's say that you click a button and:

    private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = openFileDialog1.ShowDialog();
            if (result == DialogResult.OK) // Test result.
            {
            //Do whatever you want
            //openFileDialog1.FileName .....
            }
        }

it goes something like this :-)

Problem

In my C# Windows application I want to upload a pdf file but in my toolbox I cannot find a FileUpload control. How can I go about and uploading a pdf file in a C# windows application.? regards

Original source