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

C#

 
QuestionPopulate specifc Registry keys in Combobox Pin
Jassim Rahma2-Dec-14 18:43
Jassim Rahma2-Dec-14 18:43 
AnswerRe: Populate specifc Registry keys in Combobox Pin
BillWoodruff2-Dec-14 18:48
professionalBillWoodruff2-Dec-14 18:48 
AnswerRe: Populate specifc Registry keys in Combobox Pin
OriginalGriff2-Dec-14 21:38
mveOriginalGriff2-Dec-14 21:38 
GeneralRe: Populate specifc Registry keys in Combobox Pin
Richard MacCutchan2-Dec-14 21:47
mveRichard MacCutchan2-Dec-14 21:47 
AnswerRe: Populate specifc Registry keys in Combobox Pin
Richard MacCutchan2-Dec-14 21:49
mveRichard MacCutchan2-Dec-14 21:49 
Questionhow do i get the application name from the default value in Registry/LocalMachine/Software/Classes/.docx/shell/Open/Command Pin
zen.liu872-Dec-14 16:11
zen.liu872-Dec-14 16:11 
AnswerRe: how do i get the application name from the default value in Registry/LocalMachine/Software/Classes/.docx/shell/Open/Command Pin
syed shanu2-Dec-14 17:50
professionalsyed shanu2-Dec-14 17:50 
QuestionPath stroke with multiple colors? Pin
SledgeHammer012-Dec-14 13:27
SledgeHammer012-Dec-14 13:27 
I've programatically built up a Path object. This part works perfect.

Now I want to add a vertical "threshold". So say my path goes from Y=0 to Y=100. The "threshold" may be at Y=50 or whatever. I want the path Y <= 50 to be blue and the path Y > 50 to be green or whatever.

So, right now, I'm using a LinearGradientBrush (oriented vertical and calculate the transition point and do something like

0 color1
0.5 color1
0.5 color2
1 color2

By having the two stops at 0.5, you get the hard color transition which is what I'm looking for.

Now the problem Smile | :) ...

Depending on where the threshold line is, the LinearGradientBrush gets round off errors and sometimes the color break is 1 line too high, sometimes 1 line too low.

What I mean is, my control is 27 pixels high, so the threshold line is at y=14. So theoretically, color1 should always be above the line and color2 below, but sometimes it shifts up due to the round off errors.

Any other way to do this that'll yield better results?
AnswerRe: Path stroke with multiple colors? Pin
BillWoodruff2-Dec-14 15:14
professionalBillWoodruff2-Dec-14 15:14 
GeneralRe: Path stroke with multiple colors? Pin
SledgeHammer012-Dec-14 17:26
SledgeHammer012-Dec-14 17:26 
GeneralRe: Path stroke with multiple colors? Pin
BillWoodruff2-Dec-14 18:33
professionalBillWoodruff2-Dec-14 18:33 
GeneralRe: Path stroke with multiple colors? Pin
SledgeHammer013-Dec-14 7:56
SledgeHammer013-Dec-14 7:56 
GeneralRe: Path stroke with multiple colors? Pin
BillWoodruff4-Dec-14 4:51
professionalBillWoodruff4-Dec-14 4:51 
GeneralRe: Path stroke with multiple colors? Pin
SledgeHammer012-Dec-14 18:28
SledgeHammer012-Dec-14 18:28 
QuestionEmail Delivery Receipt Pin
Jassim Rahma1-Dec-14 21:12
Jassim Rahma1-Dec-14 21:12 
AnswerRe: Email Delivery Receipt Pin
BillWoodruff1-Dec-14 21:16
professionalBillWoodruff1-Dec-14 21:16 
GeneralRe: Email Delivery Receipt Pin
Jassim Rahma1-Dec-14 21:18
Jassim Rahma1-Dec-14 21:18 
GeneralRe: Email Delivery Receipt Pin
OriginalGriff1-Dec-14 21:34
mveOriginalGriff1-Dec-14 21:34 
Questionstrong encryption Pin
Jassim Rahma1-Dec-14 0:44
Jassim Rahma1-Dec-14 0:44 
SuggestionRe: strong encryption Pin
Richard MacCutchan1-Dec-14 1:19
mveRichard MacCutchan1-Dec-14 1:19 
Question[Solved] DataGridView, BindingList and combining object properties? Pin
ixilom30-Nov-14 5:54
ixilom30-Nov-14 5:54 
QuestionLink-grammar 5.1.3 /Windows, MSVC Pin
Member 1127414829-Nov-14 18:07
Member 1127414829-Nov-14 18:07 
AnswerRe: Link-grammar 5.1.3 /Windows, MSVC Pin
Garth J Lancaster29-Nov-14 19:06
professionalGarth J Lancaster29-Nov-14 19:06 
QuestionHow to Handle Redirects to Login When Trying to Read Results From HttpWebRequest? Pin
Member 1127231728-Nov-14 15:29
Member 1127231728-Nov-14 15:29 
Questionsetting file's security to 'no delete' in code ? Pin
BillWoodruff28-Nov-14 8:39
professionalBillWoodruff28-Nov-14 8:39 

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.