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

C#

 
GeneralRe: Read non standard conformant XML Pin
tommazzo17-Sep-05 2:30
tommazzo17-Sep-05 2:30 
QuestionRe: Read non standard conformant XML Pin
tommazzo17-Sep-05 11:01
tommazzo17-Sep-05 11:01 
Questionhow to access client side (javascript value) from c# (server side) Pin
mohd rafi17-Sep-05 0:29
mohd rafi17-Sep-05 0:29 
AnswerRe: how to access client side (javascript value) from c# (server side) Pin
Guffa17-Sep-05 0:41
Guffa17-Sep-05 0:41 
Questiondatagrid Pin
bsylviain17-Sep-05 0:02
bsylviain17-Sep-05 0:02 
QuestionMdi child problem Pin
prakash_B0216-Sep-05 23:20
prakash_B0216-Sep-05 23:20 
QuestionHelp with drawing a 2D beveled Pie Chart Pin
Raul00716-Sep-05 18:35
Raul00716-Sep-05 18:35 
AnswerRe: Help with drawing a 2D beveled Pie Chart Pin
mav.northwind16-Sep-05 21:43
mav.northwind16-Sep-05 21:43 
Hi!
Although I don't know exactly which pie chart you're referring to (your link doesn't work), I think you mean the one where there's a darker rim around the border of the disc, correct?
YOu could achieve this effect by filling the whole circle with a PathGradientBrush after drawing the slices.
The center color of the gradient is transparent, the border color is something like 128,0,0,0 (ARGB).
You'll also have to tweak the Blend property to make the color distribution not uniform.
This piece of code should get you going. Put it into an OnPaint override to see it in action:
e.Graphics.FillRectangle(SystemBrushes.Control, this.ClientRectangle);
 
e.Graphics.FillEllipse(Brushes.Blue, this.ClientRectangle);
 
GraphicsPath path = new GraphicsPath();
path.AddEllipse(this.ClientRectangle);
 
PathGradientBrush pgb = new PathGradientBrush(path);
pgb.CenterColor = Color.FromArgb(0, 0, 0, 0);
pgb.SurroundColors = new Color[] { Color.FromArgb(128,0,0,0) };
Blend b = new Blend(3);
b.Factors[0] = 0;
b.Factors[1] = 0.5f;
b.Factors[2] = 1;
b.Positions[0] = 0;
b.Positions[1] = 0.2f;
b.Positions[2] = 1;
pgb.Blend = b;
 
e.Graphics.FillEllipse(pgb, this.ClientRectangle);
 
pgb.Dispose();
Regards,
mav
GeneralRe: Help with drawing a 2D beveled Pie Chart Pin
Raul00718-Sep-05 19:21
Raul00718-Sep-05 19:21 
GeneralRe: Help with drawing a 2D beveled Pie Chart Pin
mav.northwind19-Sep-05 3:49
mav.northwind19-Sep-05 3:49 
GeneralRe: Help with drawing a 2D beveled Pie Chart Pin
Raul00719-Sep-05 6:36
Raul00719-Sep-05 6:36 
QuestionWindows Mobile 5 Details and .NET Compact 2.0 Pin
bragac20016-Sep-05 10:55
bragac20016-Sep-05 10:55 
AnswerRe: Windows Mobile 5 Details and .NET Compact 2.0 Pin
thrakazog18-Sep-05 5:17
thrakazog18-Sep-05 5:17 
QuestionDisplay numerical value in DataGrid Pin
zaboboa16-Sep-05 8:02
zaboboa16-Sep-05 8:02 
AnswerRe: Display numerical value in DataGrid Pin
Guffa16-Sep-05 9:53
Guffa16-Sep-05 9:53 
AnswerRe: Display numerical value in DataGrid Pin
miah alom16-Sep-05 10:35
miah alom16-Sep-05 10:35 
GeneralRe: Display numerical value in DataGrid Pin
zaboboa19-Sep-05 2:32
zaboboa19-Sep-05 2:32 
GeneralRe: Display numerical value in DataGrid Pin
miah alom19-Sep-05 3:54
miah alom19-Sep-05 3:54 
GeneralRe: Display numerical value in DataGrid Pin
zaboboa19-Sep-05 4:05
zaboboa19-Sep-05 4:05 
GeneralRe: Display numerical value in DataGrid Pin
miah alom19-Sep-05 4:27
miah alom19-Sep-05 4:27 
GeneralRe: Display numerical value in DataGrid Pin
zaboboa19-Sep-05 5:14
zaboboa19-Sep-05 5:14 
GeneralRe: Display numerical value in DataGrid Pin
zaboboa19-Sep-05 5:31
zaboboa19-Sep-05 5:31 
GeneralRe: Display numerical value in DataGrid Pin
miah alom19-Sep-05 8:00
miah alom19-Sep-05 8:00 
QuestionSeeking advice on proper control to use: Datagrid, listview, other? Pin
Glenn E. Lanier II16-Sep-05 7:55
Glenn E. Lanier II16-Sep-05 7:55 
AnswerRe: Seeking advice on proper control to use: Datagrid, listview, other? Pin
Turtle Hand16-Sep-05 9:25
Turtle Hand16-Sep-05 9:25 

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.