Click here to Skip to main content
15,914,014 members
Home / Discussions / C#
   

C#

 
GeneralRe: Literally my first "program", and I'm trying to break it down. Pin
Gerry Schmitz2-May-19 13:57
mveGerry Schmitz2-May-19 13:57 
AnswerRe: Literally my first "program", and I'm trying to break it down. Pin
OriginalGriff2-May-19 21:28
mveOriginalGriff2-May-19 21:28 
QuestionSoftware/Tool for Form Designing to be user on cross platform Pin
Singh Anita2-May-19 3:23
Singh Anita2-May-19 3:23 
AnswerRe: Software/Tool for Form Designing to be user on cross platform Pin
Richard MacCutchan2-May-19 3:36
mveRichard MacCutchan2-May-19 3:36 
QuestionDéveloppement général Pin
Member 1434980630-Apr-19 5:52
Member 1434980630-Apr-19 5:52 
AnswerRe: Développement général Pin
OriginalGriff30-Apr-19 6:32
mveOriginalGriff30-Apr-19 6:32 
AnswerMODBUS RTU Pin
Luc Pattyn30-Apr-19 9:01
sitebuilderLuc Pattyn30-Apr-19 9:01 
AnswerRe: Développement général Pin
Gerry Schmitz30-Apr-19 20:56
mveGerry Schmitz30-Apr-19 20:56 
QuestionNewbie: if/else Pin
Member 1434938430-Apr-19 2:38
Member 1434938430-Apr-19 2:38 
AnswerRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 3:10
mveOriginalGriff30-Apr-19 3:10 
GeneralRe: Newbie: if/else Pin
Member 1434938430-Apr-19 4:23
Member 1434938430-Apr-19 4:23 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 4:30
mveOriginalGriff30-Apr-19 4:30 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 5:47
mveRichard MacCutchan30-Apr-19 5:47 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 5:52
mveOriginalGriff30-Apr-19 5:52 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 6:02
mveRichard MacCutchan30-Apr-19 6:02 
GeneralRe: Newbie: if/else Pin
OriginalGriff30-Apr-19 6:28
mveOriginalGriff30-Apr-19 6:28 
GeneralRe: Newbie: if/else Pin
Richard MacCutchan30-Apr-19 21:32
mveRichard MacCutchan30-Apr-19 21:32 
AnswerRe: Newbie: if/else Pin
BillWoodruff30-Apr-19 18:07
professionalBillWoodruff30-Apr-19 18:07 
AnswerRe: Newbie: if/else Pin
David A. Gray3-May-19 7:40
David A. Gray3-May-19 7:40 
QuestionRound Corner in C# windows foam application Pin
Member 1434920730-Apr-19 1:20
Member 1434920730-Apr-19 1:20 
AnswerRe: Round Corner in C# windows foam application Pin
Eddy Vluggen30-Apr-19 1:27
professionalEddy Vluggen30-Apr-19 1:27 
GeneralRe: Round Corner in C# windows foam application Pin
BillWoodruff30-Apr-19 18:42
professionalBillWoodruff30-Apr-19 18:42 
GeneralRe: Round Corner in C# windows foam application Pin
Eddy Vluggen1-May-19 1:03
professionalEddy Vluggen1-May-19 1:03 
AnswerRe: Round Corner in C# windows foam application Pin
Gerry Schmitz30-Apr-19 1:56
mveGerry Schmitz30-Apr-19 1:56 
AnswerRe: Round Corner in C# windows foam application Pin
BillWoodruff30-Apr-19 18:40
professionalBillWoodruff30-Apr-19 18:40 
You can make any WinForm Control have "rounded corners" without custom painting (OwnerDraw).

1. create a Component that sub-classes the native Control.

1.a. add references:

using System.Drawing;
using System.Drawing.Drawing2D;

2. based on the Bounds of the Control, develop a Graphic Path of the desired shape.

3. set the Region of the Control to the Graphics Path.

There are many examples of how to do this on the web; here's a good one: [^].

For an example that does custom painting: your friend, CodeProject, has an excellent resource: [^].
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.