Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello

i wanted to drag and drop .net controls at run time and change their properties also.adding controls and setting them to the property window is achieved now at run time,but the problem is in the property window the events of the controls are not showing.how can we get the list of events of the controls at run time.is there any method to get the events from the library or from any where else,please replay me

regards
ginnas
Posted
Comments
S@53K^S 22-Oct-12 16:52pm    
did you try using reflection ?
Sergey Alexandrovich Kryukov 22-Oct-12 17:03pm    
Do you mean invocation list of the even instance, or a list of event objects of a class/structure? First is very limited, you can take if for any delegate but only for the event which is declared in the same class; the second thing is just trivial with Reflection.
--SA
Sergey Alexandrovich Kryukov 22-Oct-12 17:04pm    
And why? You see, if yo ask for something pretty unusual, you better share your idea and your goal. Not many would like to waste their time for something which may or may not make sense.
--SA
ginnas 26-Oct-12 0:29am    
thanks
i am creating a framework like application , so at run time i wanted to drag and drop different controls in to the design surface and change their properties code something in their events and all and while running, the designed things has to execute based on the events of the controls .
now achieved adding the controls into the design surface at run time,and also possible to change the properties. for the events what i am planning to do is display the events of the controls in a grid view and provide a button for each events in another column while clicking the button the new form with text area has to appear in these text area the user can write the code, so please share some idea to achieve this

regards
ginnas

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