Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
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 
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 
No, the sides of a rectangle are always parallel to the axis - but you can do something similiar with Path/Region - structures.
Let's say you've got the endpoints (x,y) and (x',y') of your line, then the vector perpendicular to this will be
(- y'+ y,x' - x). Normalize this with the reziprocal of the length: l = sqrt((x'-x)^2 + (y'-y)^2) and you get an
vektor (vx,vy) (vx = -(y'+y)/l, vy = (x'-x)/l),
now you add (d = desired width) d/2*n and -d/2*n to the endpoints to get 4 new points that define the outline of your shape (use a path with this 4 points to create a region).
Now you only have to add two circles with radius d/2 and centers of your original endpoints of the line to the region and you have a region describing the desired neighbourhood - and you can do Hittesting in it Smile | :)
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 
GeneralRe: incrmenting by 01 instead of 1 Pin
eyeseetee10-Dec-07 3:22
eyeseetee10-Dec-07 3:22 
GeneralRe: incrmenting by 01 instead of 1 Pin
eyeseetee10-Dec-07 3:27
eyeseetee10-Dec-07 3:27 
GeneralRe: incrmenting by 01 instead of 1 Pin
J4amieC10-Dec-07 5:07
J4amieC10-Dec-07 5:07 
GeneralProblem with datatable Pin
Shaahinm10-Dec-07 1:04
Shaahinm10-Dec-07 1:04 

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.