Click here to Skip to main content
14,326,008 members
   

C#

 
AnswerRe: Newbie: if/else Pin
BillWoodruff30-Apr-19 18:07
mveBillWoodruff30-Apr-19 18:07 
AnswerRe: Newbie: if/else Pin
David A. Gray3-May-19 7:40
groupDavid A. Gray3-May-19 7:40 
QuestionRound Corner in C# windows foam application Pin
Member 1434920730-Apr-19 1:20
memberMember 1434920730-Apr-19 1:20 
AnswerRe: Round Corner in C# windows foam application Pin
Eddy Vluggen30-Apr-19 1:27
mveEddy Vluggen30-Apr-19 1:27 
GeneralRe: Round Corner in C# windows foam application Pin
BillWoodruff30-Apr-19 18:42
mveBillWoodruff30-Apr-19 18:42 
GeneralRe: Round Corner in C# windows foam application Pin
Eddy Vluggen1-May-19 1:03
mveEddy 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
mveBillWoodruff30-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

QuestionHow to get the MaxValue using LINQ ?! Pin
Abdalla Ben Omran29-Apr-19 2:24
memberAbdalla Ben Omran29-Apr-19 2:24 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
OriginalGriff29-Apr-19 3:00
protectorOriginalGriff29-Apr-19 3:00 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Abdalla Ben Omran29-Apr-19 3:17
memberAbdalla Ben Omran29-Apr-19 3:17 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
OriginalGriff29-Apr-19 3:55
protectorOriginalGriff29-Apr-19 3:55 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Richard Deeming1-May-19 8:22
mveRichard Deeming1-May-19 8:22 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Dave Kreskowiak29-Apr-19 3:10
mveDave Kreskowiak29-Apr-19 3:10 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los29-Apr-19 9:04
protectorMaciej Los29-Apr-19 9:04 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
OriginalGriff29-Apr-19 20:14
protectorOriginalGriff29-Apr-19 20:14 
PraiseRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los29-Apr-19 20:29
protectorMaciej Los29-Apr-19 20:29 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
OriginalGriff29-Apr-19 20:42
protectorOriginalGriff29-Apr-19 20:42 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Luc Pattyn30-Apr-19 0:37
professionalLuc Pattyn30-Apr-19 0:37 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Richard Deeming1-May-19 8:20
mveRichard Deeming1-May-19 8:20 
QuestionRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los2-May-19 8:24
protectorMaciej Los2-May-19 8:24 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Richard Deeming3-May-19 0:43
mveRichard Deeming3-May-19 0:43 
PraiseRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los3-May-19 1:25
protectorMaciej Los3-May-19 1:25 
AnswerRe: How to get the MaxValue using LINQ ?! Pin
Maciej Los3-May-19 1:34
protectorMaciej Los3-May-19 1:34 
GeneralRe: How to get the MaxValue using LINQ ?! Pin
Abdalla Ben Omran3-May-19 2:30
memberAbdalla Ben Omran3-May-19 2:30 

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.