Windows Forms Application C# Style

前端 未结 2 1670
有刺的猬
有刺的猬 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

    0 讨论(0)
  • 2020-12-18 13:45

    IF you wana to use Winforms than you have to buy this one for example:

    http://devcomponents.com/ You have to bind the new assemblies in your application that is not a lot of work!

    But better way do that with WPF http://wpftutorial.net/DataGrid.html

    0 讨论(0)
提交回复
热议问题