Windows Forms Application C# Style

前端 未结 2 1680
有刺的猬
有刺的猬 2020-12-18 13:23

I am developing a Windows Form Application in Visual Studio 2008 (C#) And I want to add Style to the items.

I have been investigating a few ideas about it but I have

2条回答
  •  粉色の甜心
    2020-12-18 13:34

    To do this without purchasing anything else, you could create your own custom button and text box controls, either from scratch or as controls derived from the existing windows forms controls and then overriding OnPaint etc. Take a look at what's been done here:

    http://dotnetrix.co.uk/button.htm

    You could also investigate third party options.

    Or, use WPF if that's a possibility as others have said. I'd push for WPF! If there's an existing WinForms Code base you can always host WPF Elements in WinForms. See:

    Walkthrough: Hosting a Windows Presentation Foundation Control in Windows Forms

提交回复
热议问题