Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
AnswerRe: Interface does not alter class, or does it? Pin
PIEBALDconsult3-Sep-07 17:11
mvePIEBALDconsult3-Sep-07 17:11 
GeneralRe: Interface does not alter class, or does it? Pin
Urs Enzler3-Sep-07 22:31
Urs Enzler3-Sep-07 22:31 
GeneralRe: Interface does not alter class, or does it? Pin
PIEBALDconsult4-Sep-07 4:59
mvePIEBALDconsult4-Sep-07 4:59 
GeneralRe: Interface does not alter class, or does it? Pin
Urs Enzler4-Sep-07 5:54
Urs Enzler4-Sep-07 5:54 
AnswerRe: Interface does not alter class, or does it? Pin
PIEBALDconsult4-Sep-07 5:03
mvePIEBALDconsult4-Sep-07 5:03 
AnswerRe: Interface does not alter class, or does it? [modified] Pin
Dave Kreskowiak4-Sep-07 5:56
mveDave Kreskowiak4-Sep-07 5:56 
GeneralRe: Interface does not alter class, or does it? Pin
mizitras5-Sep-07 17:06
mizitras5-Sep-07 17:06 
QuestionRound window and change the size and no more round Pin
AghaKhan3-Sep-07 14:44
AghaKhan3-Sep-07 14:44 
I would like to create a window with round edges with C#. In window Form there is a variable Region variable to set for such purposes.
First I can create a GraphicsPath with CreateGraphicsPath funcation.

public static GraphicsPath CreateGraphicsPath(Rectangle rect, float radius)
{
GraphicsPath gp = new GraphicsPath();
gp.AddLine(rect.Left + radius, rect.Top, rect.Left + rect.Width - radius, rect.Top);
gp.AddArc(rect.Right - radius, rect.Top, radius, radius, 270, 90);
gp.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
gp.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
gp.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
gp.AddArc(rect.Left, rect.Bottom - radius, radius, radius, 90, 90);
gp.AddLine(rect.Left, rect.Bottom - radius, rect.Left, rect.Top + radius);
gp.AddArc(rect.Left, rect.Top, radius, radius, 180, 90);
gp.CloseFigure();
return gp;
}
After that set
GraphicsPath gp = CreateGraphicsPath(ClientRectangle, radius);
this.Region = new Region(gp);
gp.Dispose();
After some time I would like to increase the size of window, which I am unable to do so. I tried creating new path and set to this.Region, but did not work. The window is not round any more. Any clue?
Thanks in advance if someone put light on it. If someone like to have code how I am increasing the size I can send the code as well.

agha.khan@hotmail.com
Roll eyes | :rolleyes:

Agha Khan
QuestionAdding onclick event to class Pin
DanB19833-Sep-07 10:04
DanB19833-Sep-07 10:04 
AnswerRe: Adding onclick event to class Pin
Christian Graus3-Sep-07 10:06
protectorChristian Graus3-Sep-07 10:06 
AnswerRe: Adding onclick event to class Pin
Ravi Bhavnani3-Sep-07 10:12
professionalRavi Bhavnani3-Sep-07 10:12 
AnswerRe: Adding onclick event to class Pin
Luc Pattyn3-Sep-07 10:23
sitebuilderLuc Pattyn3-Sep-07 10:23 
GeneralRe: Adding onclick event to class Pin
DanB19833-Sep-07 10:25
DanB19833-Sep-07 10:25 
QuestionwebBrowser control problem Pin
Opa Knack3-Sep-07 8:42
Opa Knack3-Sep-07 8:42 
QuestionSpam filter using Artificial Immune System Pin
starline3-Sep-07 7:36
starline3-Sep-07 7:36 
AnswerRe: Spam filter using Artificial Immune System Pin
Paul Conrad3-Sep-07 7:46
professionalPaul Conrad3-Sep-07 7:46 
GeneralRe: Spam filter using Artificial Immune System Pin
starline3-Sep-07 8:03
starline3-Sep-07 8:03 
GeneralRe: Spam filter using Artificial Immune System Pin
Paul Conrad3-Sep-07 8:26
professionalPaul Conrad3-Sep-07 8:26 
AnswerRe: Spam filter using Artificial Immune System Pin
Pete O'Hanlon3-Sep-07 9:00
mvePete O'Hanlon3-Sep-07 9:00 
GeneralRe: Spam filter using Artificial Immune System Pin
starline9-Sep-07 0:51
starline9-Sep-07 0:51 
QuestionAssign a value Pin
Assaf823-Sep-07 7:08
Assaf823-Sep-07 7:08 
AnswerRe: Assign a value Pin
Urs Enzler3-Sep-07 8:34
Urs Enzler3-Sep-07 8:34 
Questionborder for mdiparent - please help me! [modified] Pin
shai sherman3-Sep-07 7:05
shai sherman3-Sep-07 7:05 
QuestionHow to retrieve parameters in C# Form Application? Pin
jerome_data3-Sep-07 6:59
jerome_data3-Sep-07 6:59 
AnswerRe: How to retrieve parameters in C# Form Application? Pin
Luc Pattyn3-Sep-07 7:09
sitebuilderLuc Pattyn3-Sep-07 7:09 

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.