Giter Site home page Giter Site logo

kwonganding / winform.controls Goto Github PK

View Code? Open in Web Editor NEW
680.0 66.0 356.0 11.06 MB

分享几年前开发的一套winform控件库。当时主要为开发公司内部ERP系统,重新设计实现了所有用到的Winform组建,包括Form窗体组建6个(支持换肤),基础控件25个。其中有很多参考借鉴其他开源组件,也有几个是集成的别人的组件,然后做了些调整。   现在已经好几年不做Winform开发了,整理一下共享出来,希望能够给需要的朋友一些帮助。

C# 100.00%

winform.controls's Introduction

winform.controls

分享几年前开发的一套winform控件库。当时主要为开发公司内部ERP系统,重新设计实现了所有用到的Winform组建,包括Form窗体组建6个(支持换肤),基础控件25个。其中有很多参考借鉴其他开源组件,也有几个是集成的别人的组件,然后做了些调整。

现在已经好几年不做Winform开发了,整理一下共享出来,希望能够给需要的朋友一些帮助。在Win8、win10上运行是没有什么大的问题的,好像有写重绘的小bug,应该是个很容易解决的问题,没有继续深究它了。

详细博客介绍地址:http://www.cnblogs.com/anding/p/4715440.html

img

img

winform.controls's People

Contributors

kwonganding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

winform.controls's Issues

希望能持续更新

一直在关注,作者首次提交后就再也没有更新了,希望能持续更新

窗体的StartPosition属性改不了,窗体高度会自动加高

1.窗体的StartPosition属性改不了
2.窗体高度会根据内部控件的的底部自动增加一定尺寸,比如我最底部的控件高度往下拉之后,窗体高度会增加一定尺寸,多拉几次之后,增加的尺寸会很多。控件高度如果缩小的话,窗体高度没有变化,即之前窗体增加的量也不会重新缩回。
有人遇到过类似的问题吗?

采用双缓冲,解决自定控件闪烁问题

优化BaseForm的OnPaint函数
protected override void OnPaint(PaintEventArgs e)
{
//Graphics g = e.Graphics;
//GDIHelper.InitializeGraphics(g);
//this.DrawFormBackGround(g);
//this.DrawCaption(g);
//this.DrawFormBorder(g);

        //缓冲
        BufferedGraphicsContext currentContext = BufferedGraphicsManager.Current;
        BufferedGraphics myBuffer = currentContext.Allocate(e.Graphics, e.ClipRectangle);
        Graphics g = myBuffer.Graphics;
        GDIHelper.InitializeGraphics(g);
        this.DrawFormBackGround(g);
        this.DrawCaption(g);
        this.DrawFormBorder(g);

        g.SmoothingMode = SmoothingMode.HighQuality;
        g.PixelOffsetMode = PixelOffsetMode.HighSpeed;
        myBuffer.Render(e.Graphics);
        g.Dispose();
        myBuffer.Dispose();//释放资源
    }

程序集

有一些程序集没有怎么办,也不知道怎么找

边框重绘BUG

在BaseForm中,407行左右,增加一个case
case (int)WindowMessages.WM_NCACTIVATE:
if (m.WParam == (IntPtr)Win32.FALSE)
{
m.Result = (IntPtr)Win32.TRUE;
}
break;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.