Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 0:01
Radoslav Bielik23-Aug-04 0:01 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:22
protectorHeath Stewart23-Aug-04 6:22 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:48
Radoslav Bielik23-Aug-04 8:48 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:30
protectorHeath Stewart23-Aug-04 6:30 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:53
Radoslav Bielik23-Aug-04 8:53 
GeneralSorting an Arraylist Pin
malik1022-Aug-04 19:59
malik1022-Aug-04 19:59 
GeneralRe: Sorting an Arraylist Pin
sreejith ss nair22-Aug-04 20:11
sreejith ss nair22-Aug-04 20:11 
Generalproblem implementing special gradient Pin
obby22-Aug-04 19:52
obby22-Aug-04 19:52 
I'm trying to accomplish a certain gradient effect using the pathGradientBrush object. I need to draw a circle having a gradient with the center color red, which flows in both directions: inwards and outwards. That is, the center of the gradient with the red color needs to be located as a middle ring of the circle, and needs to change towards white as you travel both in the direction of the center of the circle and in the opposite direction.

The code I wrote is this:

GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(Location.X,Location.Y,length,width);
PathGradientBrush pBrush = new PathGradientBrush(gp);
pBrush.CenterColor =colorByValue(Color.red);
Color[] colors = {Color.White,Color.Red};
Brush.SurroundColors = colors;
e.Graphics.FillEllipse(Location.X,Location.Y,length, width);

Running this code I get a red elipse with a strange small white pie shaped strip. I tried looking for examples on how to implement a gradient that flows in more than one direction but couldn't find any. Does anyboy have any ideas ?
GeneralRe: problem implementing special gradient Pin
leppie22-Aug-04 21:03
leppie22-Aug-04 21:03 
GeneralProblem in HTTP POST Pin
khchan22-Aug-04 18:49
khchan22-Aug-04 18:49 
GeneralRe: Problem in HTTP POST Pin
LongRange.Shooter23-Aug-04 7:40
LongRange.Shooter23-Aug-04 7:40 
GeneralWinForms -> Submit (POST) to a web page and get results Pin
theoutlander22-Aug-04 18:36
theoutlander22-Aug-04 18:36 
GeneralRe: WinForms -> Submit (POST) to a web page and get results Pin
Mazdak22-Aug-04 19:30
Mazdak22-Aug-04 19:30 
GeneralProfessional database advice Pin
steve_rm22-Aug-04 18:03
steve_rm22-Aug-04 18:03 
GeneralRe: Professional database advice Pin
Mazdak22-Aug-04 19:18
Mazdak22-Aug-04 19:18 
GeneralRe: Professional database advice Pin
steve_rm23-Aug-04 5:25
steve_rm23-Aug-04 5:25 
GeneralMarshalling struct with array member Pin
rana7422-Aug-04 15:41
rana7422-Aug-04 15:41 
GeneralRe: Marshalling struct with array member Pin
leppie23-Aug-04 3:51
leppie23-Aug-04 3:51 
QuestionHow to export data from datagrid to excel? Pin
tzewei22-Aug-04 14:15
tzewei22-Aug-04 14:15 
AnswerRe: How to export data from datagrid to excel? Pin
Jay Shankar22-Aug-04 16:49
Jay Shankar22-Aug-04 16:49 
GeneralRe: How to export data from datagrid to excel? Pin
tzewei22-Aug-04 20:29
tzewei22-Aug-04 20:29 
GeneralRe: How to export data from datagrid to excel? Pin
tzewei22-Aug-04 22:02
tzewei22-Aug-04 22:02 
GeneralRe: How to export data from datagrid to excel? Pin
Jay Shankar24-Aug-04 0:33
Jay Shankar24-Aug-04 0:33 
GeneralDataColumn question Pin
blankg22-Aug-04 10:14
blankg22-Aug-04 10:14 
GeneralRe: DataColumn question Pin
sreejith ss nair22-Aug-04 18:56
sreejith ss nair22-Aug-04 18:56 

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.