Click here to Skip to main content
16,004,919 members
Home / Discussions / C#
   

C#

 
Questionbuffer notification points Pin
giltendezm15-Feb-07 20:56
giltendezm15-Feb-07 20:56 
QuestionMultiple clients Pin
Rahul.RK15-Feb-07 20:13
Rahul.RK15-Feb-07 20:13 
AnswerRe: Multiple clients Pin
Colin Angus Mackay15-Feb-07 23:09
Colin Angus Mackay15-Feb-07 23:09 
QuestionDisplaying files on the web page [modified] Pin
Sharon Alexander15-Feb-07 19:43
Sharon Alexander15-Feb-07 19:43 
QuestionAsking for help drawing lines with the mouse Pin
ghost_uwi115-Feb-07 19:38
ghost_uwi115-Feb-07 19:38 
AnswerRe: Asking for help drawing lines with the mouse [modified] Pin
Russell Jones15-Feb-07 21:34
Russell Jones15-Feb-07 21:34 
AnswerRe: Asking for help drawing lines with the mouse Pin
Russell Jones15-Feb-07 22:04
Russell Jones15-Feb-07 22:04 
GeneralRe: Asking for help drawing lines with the mouse [modified] Pin
ghost_uwi116-Feb-07 5:17
ghost_uwi116-Feb-07 5:17 
Ok thx for the help but the help was a bit out of my league.
I got some source code and mainpulated it a bit.

...
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Painter_MouseDown);
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Painter_MouseUp);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Painter_MouseMove);
...
Point ps = new Point();
Point pe = new Point();

private void Painter_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (flag_mouseclick == 0)
{
ps.X = e.X;
ps.Y = e.Y;
flag_mouseclick = 1;
}
pe = ps;

}

private void Painter_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
Form thisform = (Form)sender;
Graphics g = thisform.CreateGraphics();
Pen p = new Pen(Color.Blue, 2);
g.DrawLine(p, ps, pe);
ps = new Point(e.X, e.Y);
g.Dispose();
}

protected void Painter_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
Form thisform = (Form)sender;
pe = new Point(e.X, e.Y);
}
the above works around where i wanted it to.
But thx for the help none the less.



-- modified at 11:53 Friday 16th February, 2007
QuestionMicrosoft Chart control 6.0-Row Data Pin
GunaChinna15-Feb-07 18:55
GunaChinna15-Feb-07 18:55 
QuestionIfilter.. Pin
Member 382304615-Feb-07 18:25
Member 382304615-Feb-07 18:25 
QuestionInvoking the VS C++ compiler from a C# application Pin
hain15-Feb-07 13:11
hain15-Feb-07 13:11 
AnswerRe: Invoking the VS C++ compiler from a C# application Pin
ShermansLagoon16-Feb-07 1:01
ShermansLagoon16-Feb-07 1:01 
GeneralRe: Invoking the VS C++ compiler from a C# application Pin
hain16-Feb-07 3:48
hain16-Feb-07 3:48 
GeneralRe: Invoking the VS C++ compiler from a C# application Pin
ShermansLagoon17-Feb-07 21:08
ShermansLagoon17-Feb-07 21:08 
GeneralRe: Invoking the VS C++ compiler from a C# application Pin
hain18-Feb-07 8:35
hain18-Feb-07 8:35 
GeneralRe: Invoking the VS C++ compiler from a C# application Pin
ShermansLagoon18-Feb-07 19:17
ShermansLagoon18-Feb-07 19:17 
QuestionDataset Looping Pin
#realJSOP15-Feb-07 10:47
professional#realJSOP15-Feb-07 10:47 
AnswerRe: Dataset Looping Pin
Ed.Poore16-Feb-07 1:07
Ed.Poore16-Feb-07 1:07 
GeneralRe: Dataset Looping Pin
#realJSOP16-Feb-07 2:02
professional#realJSOP16-Feb-07 2:02 
GeneralRe: Dataset Looping Pin
Ed.Poore16-Feb-07 2:10
Ed.Poore16-Feb-07 2:10 
GeneralRe: Dataset Looping Pin
kubben16-Feb-07 2:12
kubben16-Feb-07 2:12 
AnswerRe: Dataset Looping Pin
Chris Buckett16-Feb-07 1:15
Chris Buckett16-Feb-07 1:15 
GeneralRe: Dataset Looping Pin
#realJSOP16-Feb-07 2:00
professional#realJSOP16-Feb-07 2:00 
GeneralRe: Dataset Looping Pin
Chris Buckett16-Feb-07 2:04
Chris Buckett16-Feb-07 2:04 
GeneralRe: Dataset Looping Pin
Chris Buckett16-Feb-07 2:19
Chris Buckett16-Feb-07 2:19 

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.