Is it possible to clone the WebBrowser control in C#? By clone, I mean, all the properties, and everything? Haven't really been able to find to much on this online. Anyone have any ideas?
Asked
Active
Viewed 919 times
1
-
May I know why do you want to clone? Why not extend? – whihathac Mar 01 '12 at 20:39
-
You can try serializing and the deserialize the control. – SamFisher83 Mar 01 '12 at 20:45
-
Well, here is emit mapper discussion, might be useful: http://stackoverflow.com/questions/3457657/object-copy-approaches-in-net-auto-mapper-emit-mapper-implicit-operation-pr – cookieMonster Mar 01 '12 at 21:04
-
@whihathac Sorry if there is some confusion. I come from a Java background. When I say clone, I mean return a non shallow copy of the object. – user489041 Mar 01 '12 at 21:38
-
@SamFisher83 I thought about that. Wasnt curious if that would work or not. Thought there might be a cleaner way to do it. But def worth a shot. – user489041 Mar 01 '12 at 21:39