Click here to Skip to main content
15,909,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: Duplicated items in watch window ? Pin
Heath Stewart10-Dec-04 20:55
protectorHeath Stewart10-Dec-04 20:55 
GeneralBeta 2.0 limitations Pin
Yaakov Davis10-Dec-04 17:46
Yaakov Davis10-Dec-04 17:46 
GeneralRe: Beta 2.0 limitations Pin
Heath Stewart10-Dec-04 20:46
protectorHeath Stewart10-Dec-04 20:46 
GeneralRe: Beta 2.0 limitations Pin
Yaakov Davis10-Dec-04 22:22
Yaakov Davis10-Dec-04 22:22 
QuestionHow to Create static Enum like ConnectionState Pin
trevor_ledet10-Dec-04 15:21
trevor_ledet10-Dec-04 15:21 
AnswerRe: How to Create static Enum like ConnectionState Pin
Heath Stewart10-Dec-04 20:51
protectorHeath Stewart10-Dec-04 20:51 
GeneralRe: How to Create static Enum like ConnectionState Pin
trevor_ledet11-Dec-04 5:52
trevor_ledet11-Dec-04 5:52 
GeneralMOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 15:19
Tyrus18210-Dec-04 15:19 
hello i am having tons of trouble moving a child window where i want if the user click within that child i want to keep the cursor at the same location on the child however i want to be able to drag the child around basicly i want to keep the mouse at the same position on the child and be able to move the child relative to the form

here is the code im working with
<br />
	private void gripper1_Click(object sender, System.Windows.Forms.MouseEventArgs e)<br />
	{<br />
		dragging = true;<br />
		this.Dock = System.Windows.Forms.DockStyle.None;<br />
			<br />
		Point p1, p2;<br />
		p1 = PointToClient(new Point(e.X, e.Y));<br />
		p2 = PointToClient(Location);<br />
		diff = new Point(p2.X + p1.X, p2.Y+p1.Y);<br />
	}<br />
		<br />
	private void gripper1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
	{<br />
		if(dragging)<br />
		{<br />
			this.Location = PointToScreen(new Point(e.X + diff.X, e.Y + diff.Y));<br />
		}<br />
	}<br />


i have tried every combination of adding and subtracting and PointToScreen and PointToClient
however none work this is the closest it sometimes keeps the pointer within the child but it seems inconsistant please help this is my 3rd post and none of the solutions that have been offered actualy work. PLEASE PLEASE PLEASE HELP ME!
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 16:28
Skynyrd10-Dec-04 16:28 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:03
Tyrus18210-Dec-04 17:03 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 17:07
Skynyrd10-Dec-04 17:07 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:15
Tyrus18210-Dec-04 17:15 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:14
Tyrus18210-Dec-04 17:14 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 17:17
Skynyrd10-Dec-04 17:17 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:29
Tyrus18210-Dec-04 17:29 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 17:44
Tyrus18210-Dec-04 17:44 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd10-Dec-04 19:10
Skynyrd10-Dec-04 19:10 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Tyrus18210-Dec-04 19:54
Tyrus18210-Dec-04 19:54 
GeneralRe: MOVING CHILD WINDOWS IN MDI Pin
Skynyrd11-Dec-04 2:08
Skynyrd11-Dec-04 2:08 
GeneralsqlCommand in C# Pin
John L. DeVito10-Dec-04 12:48
professionalJohn L. DeVito10-Dec-04 12:48 
GeneralRe: sqlCommand in C# Pin
Heath Stewart10-Dec-04 13:03
protectorHeath Stewart10-Dec-04 13:03 
GeneralCallContext SerializationException Pin
Skynyrd10-Dec-04 12:48
Skynyrd10-Dec-04 12:48 
GeneralRe: CallContext SerializationException Pin
Heath Stewart10-Dec-04 12:54
protectorHeath Stewart10-Dec-04 12:54 
GeneralRe: CallContext SerializationException Pin
Skynyrd10-Dec-04 13:12
Skynyrd10-Dec-04 13:12 
GeneralRe: CallContext SerializationException Pin
Heath Stewart10-Dec-04 14:28
protectorHeath Stewart10-Dec-04 14:28 

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.