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

C#

 
GeneralRe: IDisposable with COM Pin
hpjchobbes19-May-16 7:19
hpjchobbes19-May-16 7:19 
GeneralRe: IDisposable with COM Pin
Dave Kreskowiak19-May-16 7:23
mveDave Kreskowiak19-May-16 7:23 
QuestionEnumResourceLanguages return false for resource type identified by Name Pin
noelblanc18-May-16 10:14
noelblanc18-May-16 10:14 
AnswerRe: EnumResourceLanguages return false for resource type identified by Name Pin
noelblanc18-May-16 22:15
noelblanc18-May-16 22:15 
QuestionDraw 2 lines in a picture box and automatically measure the angle between the line Pin
Shithun NK18-May-16 6:23
Shithun NK18-May-16 6:23 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
Pete O'Hanlon18-May-16 6:47
mvePete O'Hanlon18-May-16 6:47 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
Matt T Heffron18-May-16 6:54
professionalMatt T Heffron18-May-16 6:54 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
OriginalGriff18-May-16 8:10
mveOriginalGriff18-May-16 8:10 
No - we don't do your homework for you! Laugh | :laugh:
But... some hints.
I you don't need a picture box: use a Panel instead.
Handle the Mouseclick event for the Panel, and capture three clicks:
Origin (x, y)
p1 (x1, y1)
p2 (x2, y2)
The click Location is provided in the MouseEventArgs and are relative to the Panel.
Invalidate the Panel for each click.
Handle the Paint event for the panel.
Draw a circle at each point (if provided) using Graphics.DrawEllipse and the lines as points become available using Graphics.DrawLine
Once you have the three points, you can calculate the angle with simple trig.
Wolfram MathWorld[^] can give you the equation if you search it for "Line-Line Angle"
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

Questionread blob from database Pin
teddddddddddd18-May-16 3:27
teddddddddddd18-May-16 3:27 
AnswerRe: read blob from database Pin
koolprasad200318-May-16 20:44
professionalkoolprasad200318-May-16 20:44 
AnswerRe: read blob from database Pin
Eddy Vluggen18-May-16 23:11
professionalEddy Vluggen18-May-16 23:11 
AnswerRe: read blob from database Pin
Member 120300006-Jul-16 14:58
Member 120300006-Jul-16 14:58 
QuestionProblems Related to E commerce APIs Pin
anokeha_prani17-May-16 20:51
anokeha_prani17-May-16 20:51 
AnswerRe: Problems Related to E commerce APIs Pin
Dave Kreskowiak18-May-16 2:17
mveDave Kreskowiak18-May-16 2:17 
QuestionDynamically Insert A Property Into A LINQ Query Statement Pin
MadDashCoder17-May-16 9:56
MadDashCoder17-May-16 9:56 
AnswerRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Sascha Lefèvre17-May-16 10:32
professionalSascha Lefèvre17-May-16 10:32 
GeneralRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
MadDashCoder17-May-16 10:34
MadDashCoder17-May-16 10:34 
GeneralRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Sascha Lefèvre17-May-16 11:06
professionalSascha Lefèvre17-May-16 11:06 
AnswerRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Dave Kreskowiak17-May-16 11:17
mveDave Kreskowiak17-May-16 11:17 
AnswerRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Matt T Heffron17-May-16 12:22
professionalMatt T Heffron17-May-16 12:22 
GeneralRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
MadDashCoder17-May-16 13:11
MadDashCoder17-May-16 13:11 
GeneralRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Matt T Heffron17-May-16 14:51
professionalMatt T Heffron17-May-16 14:51 
AnswerRe: Dynamically Insert A Property Into A LINQ Query Statement Pin
Gerry Schmitz19-May-16 6:41
mveGerry Schmitz19-May-16 6:41 
QuestionHow record behavior of a process in windows? Pin
saeedmir17-May-16 7:26
saeedmir17-May-16 7:26 
AnswerRe: How record behavior of a process in windows? Pin
BillWoodruff17-May-16 7:46
professionalBillWoodruff17-May-16 7:46 

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.