Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Import
- using System;
- using System.Collections.Generic;
- using System.Drawing.Drawing2D;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- #endregion
- #region Copyright
- //Creator: Yassine Abbani
- #endregion
- // Type your Own namespace
- namespace RoundButtonDemo*
- #region circular button
- {
- class Ce_CircularButton : Button
- {
- protected override void OnPaint(PaintEventArgs pevent)
- {
- GraphicsPath grPath = new GraphicsPath();
- grPath.AddEllipse(0, 0, ClientSize.Width, ClientSize.Height);
- this.Region = new System.Drawing.Region(grPath);
- base.OnPaint(pevent);
- }
- }
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement