Click here to Skip to main content
15,899,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have just kept all controls in GroupBox. Now I am trying to use it events coding but it makes new event with _1 name.

e.g old txtName_Gotfocus(...) and new txtName_Gotfocus_1(...)

i have checked deeply, found that it has removed all Handles ....... from controls events.

why this happended ? i have just cut and paste all controls in GroupBox for grouping only ?

Please reply...
Posted

1 solution

When you cut and paste controls that have handler event, the designer does not understand what your doing. When you cut them it thinks you removed them - so it thinks it should remove the handler since they are gone. There is no mechanism to add them back after they are pasted back. It is what it is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900