Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: The C5 Generic Collection Library Pin
leppie1-Sep-06 0:56
leppie1-Sep-06 0:56 
QuestionDeclaring control events in XML file Pin
mhadamji31-Aug-06 22:42
mhadamji31-Aug-06 22:42 
AnswerRe: Declaring control events in XML file Pin
WillemM31-Aug-06 23:11
WillemM31-Aug-06 23:11 
GeneralRe: Declaring control events in XML file Pin
mhadamji1-Sep-06 3:12
mhadamji1-Sep-06 3:12 
QuestionHow to capture the data entered by the user Pin
King Shez31-Aug-06 22:11
King Shez31-Aug-06 22:11 
AnswerRe: How to capture the data entered by the user Pin
CWIZO31-Aug-06 22:47
CWIZO31-Aug-06 22:47 
GeneralRe: How to capture the data entered by the user Pin
King Shez1-Sep-06 2:06
King Shez1-Sep-06 2:06 
QuestionCalculation Problems Pin
Gavin Roberts31-Aug-06 22:05
Gavin Roberts31-Aug-06 22:05 
Hi all,

I've been working on a Graph class for our web stats system and i'm having a few problems.

After getting some help of a few guys/gals (not sure) from here, I solved many problems and then hit another one.

I have currently got a class that generates an image of a graph which has X and Y Axis labels all correctly placed.

Now my problem is, how can I display my values in a staticly sized image?

My working space is 150hx650w. My X and Y Labels are all placed in the right place, and I need to calculate how tall I need to make my bars to reflect their value.

So my values are now : 0,0,4,0,90,172,0 (graph shows stats for the last 7 days)

At first I thought 150*value/100 would give me a percentage of the height, which I could simply draw

but when I tried it against the 172, my return value was 258.

Has anyone got any idea's on how to solve this. Maths was my strong subject at school, but i've forgotten most of it.

Thanks everyone.

Gav
AnswerRe: Calculation Problems Pin
Marek Grzenkowicz31-Aug-06 22:11
Marek Grzenkowicz31-Aug-06 22:11 
GeneralRe: Calculation Problems Pin
Gavin Roberts31-Aug-06 23:14
Gavin Roberts31-Aug-06 23:14 
QuestionHow to run a url [modified] Pin
Support12331-Aug-06 21:18
Support12331-Aug-06 21:18 
QuestionRe: How to run a url Pin
Support12331-Aug-06 22:44
Support12331-Aug-06 22:44 
AnswerRe: How to run a url Pin
Stefan Troschuetz31-Aug-06 23:18
Stefan Troschuetz31-Aug-06 23:18 
GeneralRe: How to run a url Pin
Support1231-Sep-06 1:10
Support1231-Sep-06 1:10 
QuestionHow to add checkbox in datagrid in windows application Pin
indiaone31-Aug-06 19:32
indiaone31-Aug-06 19:32 
AnswerRe: How to add checkbox in datagrid in windows application Pin
WillemM31-Aug-06 23:06
WillemM31-Aug-06 23:06 
QuestionDataGridView Question Pin
kalyanPaladugu31-Aug-06 18:06
kalyanPaladugu31-Aug-06 18:06 
AnswerRe: DataGridView Question Pin
Not Active31-Aug-06 18:17
mentorNot Active31-Aug-06 18:17 
Questionworking with 2D Array Pin
signimage31-Aug-06 17:52
signimage31-Aug-06 17:52 
AnswerRe: working with 2D Array Pin
Martin#31-Aug-06 20:00
Martin#31-Aug-06 20:00 
AnswerRe: working with 2D Array Pin
jjansen31-Aug-06 20:03
jjansen31-Aug-06 20:03 
QuestionRe: working with 2D Array Pin
Martin#31-Aug-06 20:28
Martin#31-Aug-06 20:28 
QuestionShell Namespace Extension Question Pin
RSL-REK31-Aug-06 14:33
RSL-REK31-Aug-06 14:33 
QuestionPrint Document Control Pin
omar el halwagy31-Aug-06 13:41
omar el halwagy31-Aug-06 13:41 
AnswerRe: Print Document Control Pin
Nader Elshehabi31-Aug-06 14:17
Nader Elshehabi31-Aug-06 14:17 

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.