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

C#

 
AnswerRe: in one project how to get other forms' handle Pin
enjoycrack21-Dec-05 21:29
enjoycrack21-Dec-05 21:29 
GeneralRe: in one project how to get other forms' handle Pin
Bassam Saoud21-Dec-05 22:59
Bassam Saoud21-Dec-05 22:59 
GeneralRe: in one project how to get other forms' handle Pin
enjoycrack22-Dec-05 6:55
enjoycrack22-Dec-05 6:55 
QuestionDrop down control in .NET Data Grid Pin
Sheshadrinath21-Dec-05 20:06
Sheshadrinath21-Dec-05 20:06 
AnswerRe: Drop down control in .NET Data Grid Pin
freshonlineMax21-Dec-05 21:35
freshonlineMax21-Dec-05 21:35 
QuestionClosing or ending a process Pin
ckruger21-Dec-05 19:28
ckruger21-Dec-05 19:28 
AnswerRe: Closing or ending a process Pin
enjoycrack21-Dec-05 21:41
enjoycrack21-Dec-05 21:41 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 21:44
ckruger21-Dec-05 21:44 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 22:20
ckruger21-Dec-05 22:20 
GeneralRe: Closing or ending a process Pin
enjoycrack22-Dec-05 6:48
enjoycrack22-Dec-05 6:48 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 22:21
ckruger21-Dec-05 22:21 
GeneralRe: Closing or ending a process Pin
Maqsood Ahmed22-Dec-05 0:54
Maqsood Ahmed22-Dec-05 0:54 
QuestionDatagrid problem Pin
yaminilathatv21-Dec-05 19:19
yaminilathatv21-Dec-05 19:19 
AnswerRe: Datagrid problem Pin
albCode21-Dec-05 21:21
albCode21-Dec-05 21:21 
QuestionIR Remote Control, Help....WM_APPCOMMAND Pin
Xodiak21-Dec-05 18:22
Xodiak21-Dec-05 18:22 
AnswerRe: IR Remote Control, Help....WM_APPCOMMAND Pin
S. Senthil Kumar22-Dec-05 3:16
S. Senthil Kumar22-Dec-05 3:16 
GeneralRe: IR Remote Control, Help....WM_APPCOMMAND Pin
Xodiak22-Dec-05 4:21
Xodiak22-Dec-05 4:21 
Questioncustom controls-query Pin
kal13na1321-Dec-05 18:08
kal13na1321-Dec-05 18:08 
AnswerRe: custom controls-query Pin
freshonlineMax21-Dec-05 22:19
freshonlineMax21-Dec-05 22:19 
QuestionGraphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 17:40
Mahi.Ragava21-Dec-05 17:40 
AnswerRe: Graphics+Line vanishes when another line is drawn Pin
Christian Graus21-Dec-05 19:14
protectorChristian Graus21-Dec-05 19:14 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 19:47
Mahi.Ragava21-Dec-05 19:47 
ya i did...

Here's the code...

<br />
public void OnPaint(object sender,PaintEventArgs e)<br />
		{<br />
			Graphics g=e.Graphics;	<br />
			Pen pen=new Pen(Color.Magenta);<br />
			Point p1=new Point(index1,index2);<br />
			Point p2=new Point(index3,index4);<br />
			g.DrawLine(pen,p1,p2);			<br />
		}	<br />
<br />
public void mouseUp(object sender,MouseEventArgs e)<br />
		{<br />
			index3=e.X;index4=e.Y;		<br />
			this.Paint+=new PaintEventHandler(this.OnPaint);	<br />
			Invalidate();<br />
		}<br />
		public void mouseDown(object sender,MouseEventArgs e)<br />
		{<br />
			index1=e.X;index2=e.Y;					<br />
		}<br />


Kindly help me...

Its very urgent
Thanx
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
microsoc21-Dec-05 20:05
microsoc21-Dec-05 20:05 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 20:17
Mahi.Ragava21-Dec-05 20:17 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Christian Graus22-Dec-05 9:30
protectorChristian Graus22-Dec-05 9:30 

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.