Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
Generalnetzwerk / network Pin
Anonymous29-Apr-04 1:56
Anonymous29-Apr-04 1:56 
GeneralRe: netzwerk / network Pin
Anonymous29-Apr-04 2:08
Anonymous29-Apr-04 2:08 
GeneralRe: netzwerk / network Pin
Daniel Turini29-Apr-04 2:28
Daniel Turini29-Apr-04 2:28 
Generaldetermine mouse button from System.EventArgs Pin
mookeroo29-Apr-04 1:16
mookeroo29-Apr-04 1:16 
GeneralRe: determine mouse button from System.EventArgs Pin
Stefan Troschuetz29-Apr-04 1:49
Stefan Troschuetz29-Apr-04 1:49 
GeneralRe: determine mouse button from System.EventArgs Pin
mookeroo29-Apr-04 1:53
mookeroo29-Apr-04 1:53 
GeneralRe: determine mouse button from System.EventArgs Pin
Syed Abdul Khader29-Apr-04 2:39
Syed Abdul Khader29-Apr-04 2:39 
GeneralRe: determine mouse button from System.EventArgs Pin
mookeroo29-Apr-04 2:32
mookeroo29-Apr-04 2:32 
I used a MouseDown in combination with a MouseUp and tested to make sure that the mouse position was still inside that bounds of the pictureBox. If anyone else was having trouble with this here is the code:

<br />
private void NowPBox_MouseDown(object sender, MouseEventArgs e)<br />
		{<br />
			if(e.Button == MouseButtons.Left)<br />
				leftClick = true;<br />
		}<br />
<br />
		private void NowPBox_MouseUp(object sender, MouseEventArgs e)<br />
		{<br />
			if(leftClick)<br />
			{<br />
				if(e.X + NowPBox.Left >= NowPBox.Left && e.X + NowPBox.Left <= NowPBox.Right)<br />
				{<br />
					if(e.Y + NowPBox.Top >= NowPBox.Top && e.Y + NowPBox.Top <= NowPBox.Bottom)<br />
					{<br />
						if(!NowPBox.PressedState)<br />
						{<br />
							this.NowPBox.Image = this.NavButtons.Images[2];<br />
							NowPBox.PressedState = true;<br />
<br />
							if(SkinsBox.PressedState)<br />
							{<br />
								this.SkinsBox.Image = this.NavButtons.Images[3];<br />
								SkinsBox.PressedState = false;<br />
							}<br />
				<br />
							this.panel1.Visible = false;<br />
							this.panel2.Visible = true;<br />
						}<br />
					}<br />
				}<br />
			}<br />
		}<br />

GeneralWin32 Interop: Returning BSTR from ATL C++ DLL Pin
inter8ection29-Apr-04 0:07
inter8ection29-Apr-04 0:07 
GeneralRe: Win32 Interop: Returning BSTR from ATL C++ DLL Pin
Mike Dimmick29-Apr-04 0:53
Mike Dimmick29-Apr-04 0:53 
GeneralRe: Win32 Interop: Returning BSTR from ATL C++ DLL Pin
inter8ection29-Apr-04 1:06
inter8ection29-Apr-04 1:06 
GeneralRe: Win32 Interop: Returning BSTR from ATL C++ DLL Pin
Mike Dimmick29-Apr-04 2:15
Mike Dimmick29-Apr-04 2:15 
GeneralJustify alignment in c# ritchtextbox control!!! Pin
hassan azizi28-Apr-04 22:47
hassan azizi28-Apr-04 22:47 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart29-Apr-04 4:03
protectorHeath Stewart29-Apr-04 4:03 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi29-Apr-04 4:42
hassan azizi29-Apr-04 4:42 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart29-Apr-04 4:48
protectorHeath Stewart29-Apr-04 4:48 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi29-Apr-04 12:24
hassan azizi29-Apr-04 12:24 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart29-Apr-04 14:08
protectorHeath Stewart29-Apr-04 14:08 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi1-May-04 7:49
hassan azizi1-May-04 7:49 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart1-May-04 9:05
protectorHeath Stewart1-May-04 9:05 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi1-May-04 14:19
hassan azizi1-May-04 14:19 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart1-May-04 14:23
protectorHeath Stewart1-May-04 14:23 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi1-May-04 14:57
hassan azizi1-May-04 14:57 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
Heath Stewart2-May-04 5:55
protectorHeath Stewart2-May-04 5:55 
GeneralRe: Justify alignment in c# ritchtextbox control!!! Pin
hassan azizi2-May-04 9:18
hassan azizi2-May-04 9:18 

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.