Click here to Skip to main content
15,893,722 members
Home / Discussions / C#
   

C#

 
QuestionHow to send parameter to another program? Pin
Affan Toor31-Jan-08 1:52
Affan Toor31-Jan-08 1:52 
GeneralRe: How to send parameter to another program? Pin
Anthony Mushrow31-Jan-08 2:12
professionalAnthony Mushrow31-Jan-08 2:12 
GeneralRe: How to send parameter to another program? Pin
Giorgi Dalakishvili31-Jan-08 2:15
mentorGiorgi Dalakishvili31-Jan-08 2:15 
GeneralRe: How to send parameter to another program? Pin
Justin Perez31-Jan-08 2:31
Justin Perez31-Jan-08 2:31 
GeneralRe: How to send parameter to another program? Pin
Pete O'Hanlon31-Jan-08 2:59
mvePete O'Hanlon31-Jan-08 2:59 
JokeRe: How to send parameter to another program? Pin
Justin Perez31-Jan-08 3:04
Justin Perez31-Jan-08 3:04 
GeneralRe: How to send parameter to another program? Pin
KarstenK31-Jan-08 4:05
mveKarstenK31-Jan-08 4:05 
Generalresize rectangle [modified] Pin
Try31-Jan-08 1:24
Try31-Jan-08 1:24 
I am using VC# GDI+

When i click on the form, a rectangle with Tracker (with resize and rotate options) is added.

I can resize rectangle by dragging the corners of the rectangle (tracker).
I can rotate it too.

When the rectangle does not have any rotation, if i drag the topleft corner, the logic is moving Rectangle's X and Y position and modifying the width and height, then it works fine.

But the question is that after i have rotated the rectangle (ex:30 degrees), the TopLeft corner dragging will take something wrong with the Top/Left moving and width/Height modifying logic.

How can I correctly resize the element which has been rotated? or how can I correctly calculate the Top/Left displacement through the TopLeft corner dragging?

Thank you in advance.

modified on Thursday, January 31, 2008 8:16:40 AM

GeneralRe: resize rectangle Pin
Anthony Mushrow31-Jan-08 2:15
professionalAnthony Mushrow31-Jan-08 2:15 
GeneralRe: resize rectangle Pin
Try31-Jan-08 2:22
Try31-Jan-08 2:22 
GeneralRe: resize rectangle Pin
Justin Perez31-Jan-08 2:46
Justin Perez31-Jan-08 2:46 
GeneralInvoking extension methods asynchronously Pin
Nenad Panić31-Jan-08 1:10
Nenad Panić31-Jan-08 1:10 
GeneralRe: Invoking extension methods asynchronously Pin
Roger Alsing31-Jan-08 1:21
Roger Alsing31-Jan-08 1:21 
GeneralRe: Invoking extension methods asynchronously Pin
Nenad Panić31-Jan-08 1:39
Nenad Panić31-Jan-08 1:39 
GeneralRe: Invoking extension methods asynchronously Pin
PIEBALDconsult31-Jan-08 5:13
mvePIEBALDconsult31-Jan-08 5:13 
Generalcreating deployment exe file on the fly Pin
samy10031-Jan-08 1:07
samy10031-Jan-08 1:07 
GeneralGetting todays date Pin
Gareth H30-Jan-08 22:53
Gareth H30-Jan-08 22:53 
GeneralRe: Getting todays date Pin
Ed.Poore30-Jan-08 22:58
Ed.Poore30-Jan-08 22:58 
GeneralRe: Getting todays date Pin
Colin Angus Mackay30-Jan-08 23:21
Colin Angus Mackay30-Jan-08 23:21 
GeneralRe: Getting todays date Pin
Ed.Poore31-Jan-08 0:08
Ed.Poore31-Jan-08 0:08 
GeneralRe: Getting todays date Pin
Colin Angus Mackay31-Jan-08 6:47
Colin Angus Mackay31-Jan-08 6:47 
GeneralRe: Getting todays date Pin
Ed.Poore31-Jan-08 7:23
Ed.Poore31-Jan-08 7:23 
GeneralRe: Getting todays date Pin
darkelv30-Jan-08 23:02
darkelv30-Jan-08 23:02 
AnswerRe: Getting todays date Pin
Gareth H30-Jan-08 23:03
Gareth H30-Jan-08 23:03 
GeneralRe: Getting todays date Pin
Ravi Bhavnani31-Jan-08 0:31
professionalRavi Bhavnani31-Jan-08 0:31 

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.