Morning all,

I have a c# app where if you press a start button a dialog box will open and the OK button will be automatically pressed. The problem is I don't know how to do this.

The code is below:

```
private void Start_Click(object sender, EventArgs e)
{
    if (captureDevice.ShowDialog(this) == DialogResult.OK)
    {
         var videoSource = captureDevice.VideoDevice;

         FinalVideo = captureDevice.VideoDevice;
         FinalVideo.NewFrame += new NewFrameEventHandler(FinalVideo_NewFrame);
         FinalVideo.Start();
    }
}

```

I have tried:

1. Removing the if statement to directly run whats inside it
2. Put DialogResult.OK = true before the if statement
3. CaptureDevice.DialogResult.OK = true before the if statement;

[Image shows the dialogbox when start is pressed](https://i.stack.imgur.com/aiP4T.png)