Me.SetStyle(ControlStyles.OptimizedDoubleBuffer,True)Gr=Me.CreateGraphics()X=Me.WidthMe.BorderStyle=Windows.Forms.BorderStyle.Fixed3DMe.Dock
Click(objectsender,EventArgse){for(inth=this.Size.Height;h0;h--){Rectangler=newRectangle(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Wi
WhenapplyingaCartoonEffectitbecomespossiblewithrelativeeasetocreateimagesappearingtohaveoriginatedfromadrawing/animation.用到的技术包括:GDI+,WPF,.NETFramework4,.System.Drawing.Drawing2D,System.Windows.Forms.UserControl
C#单词填字游戏源码源码描述:本文介绍了一个简单的应用程序,可以将一个单词列表,可以从右到左或右矩阵的一个语言填字游戏。Thisarticledescribesasimpleapplicationthatcanplacealistofwords,ineitherright-to-leftorleft-to-rightlanguageinamatrix,asacrossword.Acrosswordisawordpuzzlecreatedfromagridofwhiteandblacksquares,placingwordshorizontallyandverticallyonthesesquareswhileeachtwowordswhichcrosseachotherrequirehavinganidenticalletterattheplacetheyarecrossed.Theapplicationdescribedandincludedinthisarticleisusefulwheneverthereisaneedtocreateamechanismwhichwillplac
C#磁性窗体贴靠源码源码描述:在WindowsForms中实现磁性窗体。相信大家都用过Winamp,一定会对她那种具有吸附效果的窗口感到很惊喜吧。其实要实现这样的效果并不难!为了窗口在接近屏幕顶端的时候有一种磁性效果,我们必须在窗口的移动之前做一个判断,判断窗口将要到达的新位置的Top值是否小于一定范围(这个范围我称之为磁性距离,大小可由自己定义,为方便起见,我在这里定为20)。但是bcb里面并没有窗体移动事件,我们必须自己在程序里面拦截窗体移动消息。
