Can I dynamically unbind and rebind event handlers?

G

G. Tarazi

Hi



I guess this is possible using .NET C# reflection, but I was want to make sure that it will not break anything.



I have a C# IP form, multiple event handlers, bind to the xml using attributes, if I remove these attributes at run time, perform some changes on the dom, and then add them again, will this brake anything internal, or it will just work fine?



Is it also possible :)



Thanks
 
G

G. Tarazi

Actually I just solved my problem without reflection, by changing the code, and after some test I think it is not possible to add the InfoPath C# attributes at run time in .NET 1.1 (not a 100% sure of that), but that will be possible in .NET 2.0 (since they support edit and continue)

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message Hi



I guess this is possible using .NET C# reflection, but I was want to make sure that it will not break anything.



I have a C# IP form, multiple event handlers, bind to the xml using attributes, if I remove these attributes at run time, perform some changes on the dom, and then add them again, will this brake anything internal, or it will just work fine?



Is it also possible :)



Thanks
 
Top