Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to fill textbox with DGV Column ? Pin
Pete O'Hanlon3-Jun-15 2:32
mvePete O'Hanlon3-Jun-15 2:32 
GeneralRe: how to fill textbox with DGV Column ? Pin
Dave Kreskowiak3-Jun-15 2:37
mveDave Kreskowiak3-Jun-15 2:37 
GeneralRe: how to fill textbox with DGV Column ? Pin
Pete O'Hanlon3-Jun-15 3:35
mvePete O'Hanlon3-Jun-15 3:35 
QuestionHow to connect oracle database server without oracle client? Pin
KarthiSrv2-Jun-15 19:00
KarthiSrv2-Jun-15 19:00 
AnswerRe: How to connect oracle database server without oracle client? Pin
PIEBALDconsult2-Jun-15 19:15
mvePIEBALDconsult2-Jun-15 19:15 
AnswerRe: How to connect oracle database server without oracle client? Pin
V.2-Jun-15 22:32
professionalV.2-Jun-15 22:32 
Questionsend an email to many email address from datagridview colomn Pin
Member 115798702-Jun-15 1:49
Member 115798702-Jun-15 1:49 
AnswerRe: send an email to many email address from datagridview colomn Pin
OriginalGriff2-Jun-15 1:56
mveOriginalGriff2-Jun-15 1:56 
GeneralRe: send an email to many email address from datagridview colomn Pin
Member 115798702-Jun-15 2:00
Member 115798702-Jun-15 2:00 
GeneralRe: send an email to many email address from datagridview colomn Pin
OriginalGriff2-Jun-15 2:04
mveOriginalGriff2-Jun-15 2:04 
GeneralRe: send an email to many email address from datagridview colomn Pin
Member 115798702-Jun-15 2:17
Member 115798702-Jun-15 2:17 
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 

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.