Click here to Skip to main content
15,907,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Static Constructor Pin
Abhijit Jana10-Dec-07 3:53
professionalAbhijit Jana10-Dec-07 3:53 
GeneralRe: Static Constructor Pin
Skippums10-Dec-07 3:57
Skippums10-Dec-07 3:57 
GeneralMessageBox in Web Forms Pin
Imran Adam10-Dec-07 3:11
Imran Adam10-Dec-07 3:11 
GeneralRe: MessageBox in Web Forms Pin
Abhijit Jana10-Dec-07 3:49
professionalAbhijit Jana10-Dec-07 3:49 
GeneralRe: MessageBox in Web Forms Pin
Imran Adam10-Dec-07 9:54
Imran Adam10-Dec-07 9:54 
GeneralRe: MessageBox in Web Forms Pin
Abhijit Jana10-Dec-07 17:59
professionalAbhijit Jana10-Dec-07 17:59 
GeneralMath problem Pin
Mike Hankey10-Dec-07 2:38
mveMike Hankey10-Dec-07 2:38 
GeneralRe: Math problem Pin
Anthony Mushrow10-Dec-07 3:09
professionalAnthony Mushrow10-Dec-07 3:09 
You mean 5px above, and 5px below? Or 2.5px above and below?

Either way, you need to calculate the angle of the line, which basically is:

int lenX = startX-endX;
int lenY = startY-endY;
//length of the line
float length = sqrt(lenX^2 + lenY^2);

//and then the angle of the line (from x axis)
float angle = inverse cos(length/lenX)


Check up on google, there's lots of maths there.

My current favourite word is: Bauble!
-SK Genius


GeneralRe: Math problem Pin
Mike Hankey10-Dec-07 3:55
mveMike Hankey10-Dec-07 3:55 
GeneralRe: Math problem Pin
Luc Pattyn10-Dec-07 3:26
sitebuilderLuc Pattyn10-Dec-07 3:26 
GeneralRe: Math problem Pin
Mike Hankey10-Dec-07 4:04
mveMike Hankey10-Dec-07 4:04 
GeneralRe: Math problem Pin
CKnig10-Dec-07 18:20
CKnig10-Dec-07 18:20 
GeneralRe: Math problem Pin
Mike Hankey11-Dec-07 5:03
mveMike Hankey11-Dec-07 5:03 
GeneralDatatypes conversion [modified] Pin
VK-Cadec10-Dec-07 2:35
VK-Cadec10-Dec-07 2:35 
GeneralRe: Datatypes conversion Pin
J4amieC10-Dec-07 2:58
J4amieC10-Dec-07 2:58 
Questiontextbox-datagridview Pin
avvaru.murali10-Dec-07 2:30
avvaru.murali10-Dec-07 2:30 
GeneralRe: textbox-datagridview Pin
Paul Conrad10-Dec-07 10:47
professionalPaul Conrad10-Dec-07 10:47 
GeneralResource checking Pin
sindhutiwari10-Dec-07 2:07
sindhutiwari10-Dec-07 2:07 
GeneralAgain about certifications Pin
allende10-Dec-07 1:52
allende10-Dec-07 1:52 
Generalincrmenting by 01 instead of 1 Pin
eyeseetee10-Dec-07 1:45
eyeseetee10-Dec-07 1:45 
GeneralRe: incrmenting by 01 instead of 1 Pin
Bekjong10-Dec-07 1:53
Bekjong10-Dec-07 1:53 
GeneralRe: incrmenting by 01 instead of 1 Pin
J4amieC10-Dec-07 1:58
J4amieC10-Dec-07 1:58 
GeneralRe: incrmenting by 01 instead of 1 Pin
Anthony Mushrow10-Dec-07 2:20
professionalAnthony Mushrow10-Dec-07 2:20 
GeneralRe: incrmenting by 01 instead of 1 Pin
eyeseetee10-Dec-07 2:56
eyeseetee10-Dec-07 2:56 
GeneralRe: incrmenting by 01 instead of 1 Pin
J4amieC10-Dec-07 3:09
J4amieC10-Dec-07 3:09 

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.