Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
GeneralRe: send an email to many email address from datagridview colomn Pin
Chris Quinn2-Jun-15 2:22
Chris Quinn2-Jun-15 2:22 
GeneralRe: send an email to many email address from datagridview colomn Pin
Member 115798702-Jun-15 2:25
Member 115798702-Jun-15 2:25 
GeneralRe: send an email to many email address from datagridview colomn Pin
Chris Quinn2-Jun-15 2:29
Chris Quinn2-Jun-15 2:29 
GeneralRe: send an email to many email address from datagridview colomn Pin
OriginalGriff2-Jun-15 2:25
mveOriginalGriff2-Jun-15 2:25 
Questionhow to bind sql data in kendo ui grid in webpage not in mvc Pin
anjus123431-May-15 10:58
anjus123431-May-15 10:58 
Answer[Repost] Pin
Sascha Lefèvre31-May-15 11:30
professionalSascha Lefèvre31-May-15 11:30 
Questionhow to create a simple chart drawing library Pin
Member 1041780831-May-15 7:17
Member 1041780831-May-15 7:17 
AnswerRe: how to create a simple chart drawing library Pin
Sascha Lefèvre31-May-15 8:10
professionalSascha Lefèvre31-May-15 8:10 
If it's alright for you to borrow some ideas from other projects then you will find a lot of articles when you google for "codeproject chart designer" or "codeproject report designer".

Otherwise my suggestion would be: Have an anchor point for each graphical element and, depending on the shape of the element, zero to many track-points. Keep these points in some collection: Maybe a simple List<T> to start off with but probably there's room for optimization. Subscribe to mouse-move-events and calculate the distance of the mouse pointer to these points to determine the closest point (there's the optimization potential: if it's not a simple List but a structure that lets you sort the points by their x- any y-coordinates then you could find the closest point faster). If the distance is below a chosen threshold, change the mouse pointer to indicate the possibility of some action - like dragging the shape. If the user clicks and holds the mouse button, change the shapes coordinates (or dimensions) according to the mouse movement until he releases the mouse button while repainting the graphics area.

Would this be the sort of guidance you were asking for?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: how to create a simple chart drawing library Pin
Member 1041780831-May-15 9:26
Member 1041780831-May-15 9:26 
GeneralRe: how to create a simple chart drawing library Pin
Sascha Lefèvre31-May-15 9:35
professionalSascha Lefèvre31-May-15 9:35 
QuestionC # Pin
Member 1116544331-May-15 2:11
Member 1116544331-May-15 2:11 
AnswerRe: C # Pin
Sascha Lefèvre31-May-15 2:17
professionalSascha Lefèvre31-May-15 2:17 
AnswerRe: C # Pin
OriginalGriff31-May-15 2:47
mveOriginalGriff31-May-15 2:47 
AnswerRe: C # Pin
Abhipal Singh31-May-15 2:53
professionalAbhipal Singh31-May-15 2:53 
AnswerRe: C # Pin
Ravi Bhavnani1-Jun-15 5:36
professionalRavi Bhavnani1-Jun-15 5:36 
JokeRe: C # Pin
Richard Deeming1-Jun-15 8:47
mveRichard Deeming1-Jun-15 8:47 
GeneralRe: C # Pin
Ravi Bhavnani1-Jun-15 8:56
professionalRavi Bhavnani1-Jun-15 8:56 
QuestionAction<T> Delegate usage between 2 applications Pin
Member 1171394230-May-15 23:01
Member 1171394230-May-15 23:01 
AnswerRe: Action<T> Delegate usage between 2 applications Pin
Richard MacCutchan31-May-15 1:11
mveRichard MacCutchan31-May-15 1:11 
AnswerRe: Action<T> Delegate usage between 2 applications Pin
BillWoodruff31-May-15 1:55
professionalBillWoodruff31-May-15 1:55 
GeneralRe: Action<T> Delegate usage between 2 applications Pin
Member 1171394221-Jun-15 6:05
Member 1171394221-Jun-15 6:05 
AnswerRe: Action<T> Delegate usage between 2 applications Pin
Armugam Indrani31-May-15 19:40
professionalArmugam Indrani31-May-15 19:40 
GeneralRe: Action<T> Delegate usage between 2 applications Pin
Member 1171394221-Jun-15 6:01
Member 1171394221-Jun-15 6:01 
GeneralRe: Action<T> Delegate usage between 2 applications Pin
Member 1171394229-Jun-15 20:26
Member 1171394229-Jun-15 20:26 
AnswerRe: Action<T> Delegate usage between 2 applications Pin
HaldorPhil20-Aug-15 6:57
HaldorPhil20-Aug-15 6:57 

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.