Click here to Skip to main content
16,014,662 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to implement shell exec in .net... (Bug in .NET?) Pin
jamesjk5-Dec-06 23:11
jamesjk5-Dec-06 23:11 
GeneralRe: how to implement shell exec in .net... (Bug in .NET?) Pin
Christian Graus5-Dec-06 23:24
protectorChristian Graus5-Dec-06 23:24 
AnswerRe: how to implement shell exec in .net... (Bug in .NET?) Pin
Dave Kreskowiak6-Dec-06 4:49
mveDave Kreskowiak6-Dec-06 4:49 
GeneralRe: how to implement shell exec in .net... (Bug in .NET?) Pin
jamesjk6-Dec-06 16:51
jamesjk6-Dec-06 16:51 
GeneralRe: how to implement shell exec in .net... (Bug in .NET?) Pin
Dave Kreskowiak7-Dec-06 8:12
mveDave Kreskowiak7-Dec-06 8:12 
QuestionHow to draw rounded rectangle? Pin
god4k5-Dec-06 21:09
god4k5-Dec-06 21:09 
AnswerRe: How to draw rounded rectangle? Pin
Christian Graus5-Dec-06 21:56
protectorChristian Graus5-Dec-06 21:56 
AnswerRe: How to draw rounded rectangle? Pin
Mandaar Kulkarni5-Dec-06 22:37
Mandaar Kulkarni5-Dec-06 22:37 
Try Following.
Good Luck.


float radius = 5; // Radius for round curve
float diameter = 2 * radius;
// Basic dimensions where Roundrect is to be drawn
Rectangle BaseRect = new Rectangle(x1, y1, x2, y2);

SizeF RoundSize = new SizeF(diameter, diameter);

RectangleF RoundArc = new RectangleF(BaseRect.Location, RoundSize);

// Graphics object
Graphics G = Graphics.FromHwnd(this.Handle);

// Create Graphics path
GraphicsPath Gp = new GraphicsPath();

Pen P = new Pen(Brushes.Black);

// Top left arc
RoundArc.X = BaseRect.Left;
RoundArc.Y = BaseRect.Top;
Gp.AddArc(RoundArc, 180, 90);

//Top right arc
RoundArc.X = (BaseRect.Right - diameter);
RoundArc.Y = BaseRect.Top;
Gp.AddArc(RoundArc, 270, 90);

// Bottom right arc
RoundArc.X = (BaseRect.Right - diameter);
RoundArc.Y = BaseRect.Bottom - diameter;
Gp.AddArc(RoundArc, 0, 90);

// Bottom left arc
RoundArc.X = BaseRect.Left;
RoundArc.Y = (BaseRect.Bottom - diameter);
Gp.AddArc(RoundArc, 90, 90);

// Close Graphics path
Gp.CloseFigure();

// Draw graphics path
G.DrawPath(P, Gp);

Questionmultiple dropdowns in propertygrid Pin
Tanuja1235-Dec-06 21:07
Tanuja1235-Dec-06 21:07 
QuestionAdd a user to a group Pin
quiteSmart5-Dec-06 20:09
quiteSmart5-Dec-06 20:09 
AnswerRe: Add a user to a group Pin
stancrm6-Dec-06 2:02
stancrm6-Dec-06 2:02 
QuestionWindows Service Pin
nidheeshkayal5-Dec-06 17:44
nidheeshkayal5-Dec-06 17:44 
QuestionSelecting a datagrid row for updation Pin
Deepasubramanian5-Dec-06 16:29
Deepasubramanian5-Dec-06 16:29 
QuestionTricky C# questions... Pin
swjam5-Dec-06 14:57
swjam5-Dec-06 14:57 
AnswerRe: Tricky C# questions... Pin
Not Active5-Dec-06 15:13
mentorNot Active5-Dec-06 15:13 
AnswerRe: Tricky C# questions... Pin
V.5-Dec-06 22:09
professionalV.5-Dec-06 22:09 
QuestionBinding DataGridView to a DataTable - skipping binding some of the columns in the DataTable Pin
Athadu5-Dec-06 14:38
Athadu5-Dec-06 14:38 
QuestionActionscript & C# Pin
Revant Jain5-Dec-06 13:34
Revant Jain5-Dec-06 13:34 
AnswerRe: Actionscript & C# Pin
Vasudevan Deepak Kumar6-Dec-06 0:56
Vasudevan Deepak Kumar6-Dec-06 0:56 
QuestionInserting ListItem controls inside DropDownList controls contained in a Datalist control Pin
tedhill135-Dec-06 12:43
tedhill135-Dec-06 12:43 
Questionsql server 2005 ConnectionString. Pin
hdv2125-Dec-06 11:30
hdv2125-Dec-06 11:30 
AnswerRe: sql server 2005 ConnectionString. Pin
Guffa5-Dec-06 13:31
Guffa5-Dec-06 13:31 
AnswerRe: sql server 2005 ConnectionString. Pin
ednrgc6-Dec-06 7:06
ednrgc6-Dec-06 7:06 
QuestionRichEditBox, IRichEditOle, IOleObject - Inserting, Saving and Loading embedded Ole objects in a RichTextBox Pin
Anthony Queen5-Dec-06 11:23
Anthony Queen5-Dec-06 11:23 
GeneralRe: RichEditBox, IRichEditOle, IOleObject - Inserting, Saving and Loading embedded Ole objects in a RichTextBox Pin
Anthony Queen6-Dec-06 5:48
Anthony Queen6-Dec-06 5:48 

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.