How do I change the title of ColorDialog?

后端 未结 4 771
北荒
北荒 2021-01-19 14:21

I\'m spinning up a ColorDialog component in WinForms to let the user select a particular custom control\'s chart\'s background color and foreground color. Both configuratio

4条回答
  •  误落风尘
    2021-01-19 14:49

    Assuming the ColorDialog exposes its hWnd (I don't have Visual Studio on this machine to check), you could use the Win32 SetWindowText API. The PInvoke signature can be found at PInvoke.net.

提交回复
热议问题