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.
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)
Please login first to submit.