Click here to Skip to main content
15,899,634 members
Home / Discussions / C#
   

C#

 
AnswerRe: GetBaseline from Font? Pin
leppie16-May-04 4:09
leppie16-May-04 4:09 
GeneralSerial communication problem Pin
wk_vigorous16-May-04 0:10
wk_vigorous16-May-04 0:10 
GeneralRe: Serial communication problem Pin
Anonymous16-May-04 1:21
Anonymous16-May-04 1:21 
GeneralRe: Serial communication problem Pin
wk_vigorous16-May-04 21:52
wk_vigorous16-May-04 21:52 
Generallimit the mouse movement Pin
Member 89285615-May-04 20:44
Member 89285615-May-04 20:44 
GeneralRe: limit the mouse movement Pin
leppie15-May-04 22:15
leppie15-May-04 22:15 
GeneralRe: limit the mouse movement Pin
Hesham Amin15-May-04 22:55
Hesham Amin15-May-04 22:55 
GeneralRe: limit the mouse movement Pin
Member 89285616-May-04 4:31
Member 89285616-May-04 4:31 
private void panel1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
		<br />
	Point mDL = new Point(e.X,e.Y);<br />
<br />
	if (mDL.X>panel1.Width || mDL.Y<panel1.Height)<br />
	{<br />
	  mDL.X=panel1.Location.X+panel1.Width-20;<br />
	  mDL.Y=panel1.Location.Y+panel1.Height-20;<br />
	  this.Cursor = new Cursor(Cursor.Current.Handle);<br />
	  Cursor.Position = new Point(Cursor.Position.X - 40, Cursor.Position.Y - 40);<br />
	  Cursor.Clip = new Rectangle(panel1.Location,panel1.Size);<br />
	}<br />
	panel1.Invalidate();				<br />
}

still i can move my ellipse outside the panel.And after I move the cursor outside the form I can move the cursor only in the upper part of the form?!?!
Can you give me another tips??
Thanks
QuestionHow to generate keyboard events from a sys service Pin
catalin_im15-May-04 11:38
catalin_im15-May-04 11:38 
AnswerRe: How to generate keyboard events from a sys service Pin
TigerNinja_15-May-04 11:48
TigerNinja_15-May-04 11:48 
GeneralRe: How to generate keyboard events from a sys service Pin
catalin_im16-May-04 5:56
catalin_im16-May-04 5:56 
GeneralRe: How to generate keyboard events from a sys service Pin
Heath Stewart16-May-04 12:13
protectorHeath Stewart16-May-04 12:13 
AnswerRe: How to generate keyboard events from a sys service Pin
Heath Stewart16-May-04 12:18
protectorHeath Stewart16-May-04 12:18 
GeneralSys or CPU Temperature Pin
eggie515-May-04 10:56
eggie515-May-04 10:56 
GeneralRe: Sys or CPU Temperature Pin
TigerNinja_15-May-04 11:45
TigerNinja_15-May-04 11:45 
GeneralRe: Sys or CPU Temperature Pin
eggie515-May-04 11:56
eggie515-May-04 11:56 
GeneralRe: Sys or CPU Temperature Pin
Orkun GEDiK15-May-04 11:46
Orkun GEDiK15-May-04 11:46 
GeneralRe: Sys or CPU Temperature Pin
TigerNinja_15-May-04 11:49
TigerNinja_15-May-04 11:49 
GeneralRe: Sys or CPU Temperature Pin
eggie515-May-04 11:51
eggie515-May-04 11:51 
GeneralRe: Sys or CPU Temperature Pin
Orkun GEDiK15-May-04 14:25
Orkun GEDiK15-May-04 14:25 
GeneralCrystal reports Pin
blankg15-May-04 10:25
blankg15-May-04 10:25 
GeneralRe: Crystal reports Pin
Heath Stewart16-May-04 12:06
protectorHeath Stewart16-May-04 12:06 
GeneralRe: Crystal reports Pin
blankg17-May-04 5:06
blankg17-May-04 5:06 
Generalseaching a web page Pin
mikey C15-May-04 9:31
mikey C15-May-04 9:31 
GeneralRe: seaching a web page Pin
eggie516-May-04 5:21
eggie516-May-04 5:21 

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.