Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dear Inheritance - A question for you Pin
Robert Rohde10-Nov-05 20:51
Robert Rohde10-Nov-05 20:51 
QuestionTime Text Field Pin
charbelasmar10-Nov-05 5:46
charbelasmar10-Nov-05 5:46 
AnswerRe: Time Text Field Pin
Joshua Quick10-Nov-05 7:11
Joshua Quick10-Nov-05 7:11 
QuestionMouse Events Pin
rich_wenger10-Nov-05 3:54
rich_wenger10-Nov-05 3:54 
AnswerRe: Mouse Events Pin
Dan Neely10-Nov-05 4:54
Dan Neely10-Nov-05 4:54 
GeneralRe: Mouse Events Pin
rich_wenger10-Nov-05 5:08
rich_wenger10-Nov-05 5:08 
AnswerRe: Mouse Events Pin
Luis Alonso Ramos10-Nov-05 5:32
Luis Alonso Ramos10-Nov-05 5:32 
GeneralRe: Mouse Events Pin
Gulfraz Khan10-Nov-05 6:10
Gulfraz Khan10-Nov-05 6:10 
And you can use the following sample code to add mousemove event handler to every control on your form (as Luis pointed out).

<br />
//you may call the function in the Form_Load event as<br />
<br />
AttachEventHandler(this);<br />
<br />
void AttachEventHandler(Control ParentControl)<br />
{<br />
	foreach (Control ctrl in ParentControl.Controls)<br />
	{<br />
		if (ctrl.HasChild == true)<br />
		{<br />
			AttachEventHandler(ctrl); // recursive call, add handler to child controls also<br />
		}<br />
		else<br />
		{<br />
			ctrl.MouseMove += new MouseEventHandler(Form1_MouseMove);<br />
		}<br />
	}<br />
} 

GeneralRe: Mouse Events Pin
rich_wenger10-Nov-05 6:15
rich_wenger10-Nov-05 6:15 
GeneralRe: Mouse Events Pin
rich_wenger11-Nov-05 5:53
rich_wenger11-Nov-05 5:53 
QuestionFrom designer, create a component passing parameters Pin
monteiz10-Nov-05 3:36
monteiz10-Nov-05 3:36 
AnswerRe: From designer, create a component passing parameters Pin
monteiz10-Nov-05 4:01
monteiz10-Nov-05 4:01 
QuestionTextbox Pin
PaulaM10-Nov-05 2:50
PaulaM10-Nov-05 2:50 
AnswerRe: Textbox Pin
S. Senthil Kumar10-Nov-05 3:48
S. Senthil Kumar10-Nov-05 3:48 
AnswerRe: Textbox Pin
Gulfraz Khan10-Nov-05 6:17
Gulfraz Khan10-Nov-05 6:17 
AnswerRe: Textbox Pin
Craig G Fraser10-Nov-05 22:23
Craig G Fraser10-Nov-05 22:23 
Questionc# and xml Pin
ginopilotino8210-Nov-05 2:11
ginopilotino8210-Nov-05 2:11 
AnswerRe: c# and xml Pin
S. Senthil Kumar10-Nov-05 4:08
S. Senthil Kumar10-Nov-05 4:08 
GeneralRe: c# and xml Pin
ginopilotino8210-Nov-05 4:49
ginopilotino8210-Nov-05 4:49 
GeneralRe: c# and xml Pin
S. Senthil Kumar10-Nov-05 5:25
S. Senthil Kumar10-Nov-05 5:25 
GeneralRe: c# and xml Pin
ginopilotino8210-Nov-05 5:48
ginopilotino8210-Nov-05 5:48 
QuestionShow more than one row on the datagrid's Footer Pin
Fendefa10-Nov-05 1:51
Fendefa10-Nov-05 1:51 
QuestionLocating App path Pin
Mark0610-Nov-05 1:50
Mark0610-Nov-05 1:50 
AnswerRe: Locating App path Pin
S. Senthil Kumar10-Nov-05 3:44
S. Senthil Kumar10-Nov-05 3:44 
AnswerRe: Locating App path Pin
AETaylor10-Nov-05 22:09
AETaylor10-Nov-05 22:09 

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.