Click here to Skip to main content
15,889,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help with unsafe code ( array of pointer to a stucture) Pin
Guffa17-Sep-08 3:25
Guffa17-Sep-08 3:25 
GeneralRe: Help with unsafe code ( array of pointer to a stucture) Pin
Preetham.N17-Sep-08 3:33
Preetham.N17-Sep-08 3:33 
GeneralRe: Help with unsafe code ( array of pointer to a stucture) Pin
Guffa17-Sep-08 8:40
Guffa17-Sep-08 8:40 
GeneralRe: Help with unsafe code ( array of pointer to a stucture) Pin
Preetham.N17-Sep-08 3:50
Preetham.N17-Sep-08 3:50 
AnswerRe: Help with unsafe code ( array of pointer to a stucture) Pin
Preetham.N17-Sep-08 23:40
Preetham.N17-Sep-08 23:40 
QuestionHow to Set Expiration Policy to an Application Object in ASP.Net Applciation? Pin
BhanuRegonda17-Sep-08 1:56
BhanuRegonda17-Sep-08 1:56 
AnswerRe: How to Set Expiration Policy to an Application Object in ASP.Net Applciation? Pin
N a v a n e e t h17-Sep-08 2:08
N a v a n e e t h17-Sep-08 2:08 
QuestionThreshold type control - calculating size Pin
Gareth H17-Sep-08 1:51
Gareth H17-Sep-08 1:51 
I am trying to create a control that displays a type of threshold.

I have 3 numeric up down controls that take an input from the user. Depending on the input I update the below control. The control is made up of 3 blocks of colour. Each block represents a numeric up down value.

_______________
| y | o | r |
_______________

(y = yellow, o = orange, r = red)

So for instance, yellow is 5, orange is 8 and red is 10. I then need to update the size of the blocks to represent them.
This would then display the blocks correctly, so that 0 - 50% of the control is yellow, 50 to 80% is orange and the last 80 to 100% is red. However, these are only example values, the values could be anything and not in order, eg: 10, 5, 20

Does anyone know how to do this?, I am sure there is a simple maths way, but I cannot think of it at the moment.

Regards,
Gareth.

(FKA gareth111)

AnswerRe: Threshold type control - calculating size Pin
BhanuRegonda17-Sep-08 2:01
BhanuRegonda17-Sep-08 2:01 
GeneralRe: Threshold type control - calculating size Pin
Gareth H17-Sep-08 2:06
Gareth H17-Sep-08 2:06 
AnswerRe: Threshold type control - calculating size Pin
Alan Balkany17-Sep-08 3:33
Alan Balkany17-Sep-08 3:33 
GeneralRe: Threshold type control - calculating size Pin
Gareth H17-Sep-08 4:06
Gareth H17-Sep-08 4:06 
GeneralRe: Threshold type control - calculating size Pin
Alan Balkany17-Sep-08 4:40
Alan Balkany17-Sep-08 4:40 
GeneralRe: Threshold type control - calculating size Pin
Gareth H17-Sep-08 5:19
Gareth H17-Sep-08 5:19 
GeneralRe: Threshold type control - calculating size Pin
Alan Balkany17-Sep-08 5:26
Alan Balkany17-Sep-08 5:26 
QuestionLog Pin
ellllllllie17-Sep-08 1:20
ellllllllie17-Sep-08 1:20 
AnswerRe: Log Pin
N a v a n e e t h17-Sep-08 2:05
N a v a n e e t h17-Sep-08 2:05 
AnswerRe: Log [modified] Pin
Colin Angus Mackay17-Sep-08 2:06
Colin Angus Mackay17-Sep-08 2:06 
GeneralRe: Log Pin
Harvey Saayman17-Sep-08 8:09
Harvey Saayman17-Sep-08 8:09 
AnswerRe: Log Pin
nelsonpaixao17-Sep-08 12:51
nelsonpaixao17-Sep-08 12:51 
QuestionWindows service using C# Pin
Mohammed Hameed17-Sep-08 0:53
professionalMohammed Hameed17-Sep-08 0:53 
AnswerRe: Windows service using C# Pin
Manas Bhardwaj17-Sep-08 1:21
professionalManas Bhardwaj17-Sep-08 1:21 
GeneralRe: Windows service using C# Pin
Mohammed Hameed17-Sep-08 1:56
professionalMohammed Hameed17-Sep-08 1:56 
AnswerRe: Windows service using C# Pin
#realJSOP17-Sep-08 4:39
mve#realJSOP17-Sep-08 4:39 
GeneralRe: Windows service using C# Pin
Mohammed Hameed18-Sep-08 23:58
professionalMohammed Hameed18-Sep-08 23:58 

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.