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

C#

 
AnswerRe: text editor Pin
Robert Rohde15-Oct-05 22:07
Robert Rohde15-Oct-05 22:07 
Questiondirectx video source as a binary stream? Pin
serguey_haftrige15-Oct-05 17:08
serguey_haftrige15-Oct-05 17:08 
AnswerRe: directx video source as a binary stream? Pin
Heath Stewart16-Oct-05 0:33
protectorHeath Stewart16-Oct-05 0:33 
GeneralRe: directx video source as a binary stream? Pin
serguey_haftrige16-Oct-05 14:52
serguey_haftrige16-Oct-05 14:52 
AnswerRe: directx video source as a binary stream? Pin
Heath Stewart16-Oct-05 17:28
protectorHeath Stewart16-Oct-05 17:28 
QuestionRemoving Handler... URGENT Pin
Shubhabrata Mohanty15-Oct-05 16:14
Shubhabrata Mohanty15-Oct-05 16:14 
AnswerRe: Removing Handler... URGENT Pin
Heath Stewart16-Oct-05 0:04
protectorHeath Stewart16-Oct-05 0:04 
GeneralRe: Removing Handler... URGENT Pin
Shubhabrata Mohanty16-Oct-05 11:06
Shubhabrata Mohanty16-Oct-05 11:06 
Thanks Heath for your help. I got it what you explained but when I try that with this sample code, it didn't work. Please help me. Yoour help is appreciated.

I have a TextBox "textBox1" in my windows form. I have a handler for TextChanged event. I am trying to remove this using this code. but it doesn't work. Please help.

<br />
foreach(EventInfo ev in textBox1.GetType().GetEvents())<br />
{<br />
     FieldInfo fi = textBox1.GetType().GetField(ev.Name,<br />
	BindingFlags.Public |<br />
	BindingFlags.NonPublic |<br />
	BindingFlags.Instance);<br />
<br />
       if (fi != null)<br />
	{<br />
	    Delegate d = (Delegate)fi.GetValue(textBox1);<br />
            foreach(Delegate handler in d.GetInvocationList())<br />
	    {<br />
		 ev.RemoveEventHandler(this, handler);<br />
	    }<br />
	}<br />
}<br />

AnswerRe: Removing Handler... URGENT Pin
Heath Stewart16-Oct-05 17:06
protectorHeath Stewart16-Oct-05 17:06 
GeneralRe: Removing Handler... URGENT Pin
Shubhabrata Mohanty16-Oct-05 20:42
Shubhabrata Mohanty16-Oct-05 20:42 
AnswerRe: Removing Handler... URGENT Pin
Heath Stewart17-Oct-05 5:58
protectorHeath Stewart17-Oct-05 5:58 
QuestionEncode two integers Pin
JoaoPe15-Oct-05 15:48
JoaoPe15-Oct-05 15:48 
AnswerRe: Encode two integers Pin
Rob Philpott15-Oct-05 23:29
Rob Philpott15-Oct-05 23:29 
AnswerRe: Encode two integers Pin
Heath Stewart16-Oct-05 0:17
protectorHeath Stewart16-Oct-05 0:17 
GeneralRe: Encode two integers Pin
JoaoPe16-Oct-05 2:33
JoaoPe16-Oct-05 2:33 
AnswerRe: Encode two integers Pin
Heath Stewart16-Oct-05 17:14
protectorHeath Stewart16-Oct-05 17:14 
QuestionWinService issues Pin
WetRivrRat15-Oct-05 13:42
WetRivrRat15-Oct-05 13:42 
AnswerRe: WinService issues Pin
Heath Stewart16-Oct-05 0:25
protectorHeath Stewart16-Oct-05 0:25 
QuestionRead until &quot;- -&quot; ??? Pin
WetRivrRat15-Oct-05 13:06
WetRivrRat15-Oct-05 13:06 
AnswerRe: Read until &quot;- -&quot; ??? Pin
Robert Rohde15-Oct-05 22:29
Robert Rohde15-Oct-05 22:29 
AnswerRe: Read until &quot;- -&quot; ??? Pin
Scott Serl16-Oct-05 15:00
Scott Serl16-Oct-05 15:00 
Questionvideo streaming, Is it possible Pin
serguey_haftrige15-Oct-05 12:23
serguey_haftrige15-Oct-05 12:23 
AnswerRe: video streaming, Is it possible Pin
leppie15-Oct-05 23:24
leppie15-Oct-05 23:24 
QuestionPersistence Pin
Sled Dog15-Oct-05 11:27
Sled Dog15-Oct-05 11:27 
AnswerRe: Persistence Pin
Rob Philpott16-Oct-05 1:14
Rob Philpott16-Oct-05 1:14 

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.