Color Dialog - Center in Parent Window

0
0

Hi,

I was just wondering if it is possible to Center a ColorDialog in the center on its parent.

It doesnt seem to have a StartPosition option and cant see any other methods that could be use to perform this function.

Thanks,

Daniel.

  • You must to post comments
1
0

Hi Daniel,

ColorDialog haven’t StartPosition attribute but you can create a Custom ColorDialog and setup form like this:


public class CustomDialogColor: ColorDialog
{
protected override Form CreateUI()
{
var form = base.CreateUI();
form.StartPosition = FormStartPosition.CenterParent;
return form;
}
}

Best,

Kevin (ITG)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.