c# - Return color from a function : <p>I am making an application which will use function from another class, open color dialog and then return the color value to the form. I have written the class but I don't understand why it gives me an error. The error is</p>

<blockquote>
  <p>Since 'Editing.ChooseColor' returns void, a return keyword must not be followed by an object expression.</p>
</blockquote>

<p>My class code is</p>

<pre><code>        public void ChooseColor()
    {
        ColorDialog ColorDialog = new ColorDialog();
        ColorDialog.ShowDialog();
        System.Drawing.Color Color = ColorDialog.Color;
        return Color;
    }
</code></pre>

<p>My form will call the function and the get the color value. Thanks for help.</p>
