Click here to Skip to main content
15,884,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing an application, I need some idea to select multiple control in the run time environment A just what we can do at design time

as of now i can select one control at a time but i need to select multiple controls at runtime
for example we do Ctrl+click to select multiple controls at design time
i am trying to achieve same thing same thing at runtime

please help!!!!!!
Posted
Updated 13-Oct-12 1:31am
v4
Comments
Omkaara 13-Oct-12 2:16am    
i am using this code foe time being but it does not allow me to select multiple control
http://www.codeproject.com/Articles/5090/Simple-Runtime-Control-Sizing-and-Dragging-Class

1 solution

That article is not about selecting controls at all.

The "Selecting" controls functionality is usually provided by the surface that the controls are on, not the controls themselves.

The controls provide the imagery (handles and border changes) that they are selected if the controls provide a property that lets the design surface tell them they are selected.

Once the controls have that "mode" property set, they can redraw themselves to show they are selected.
 
Share this answer
 
Comments
Omkaara 16-Oct-12 1:14am    
@Dave Kreskowiak,
Sir, please explain in detail how to set that "mode" property
Dave Kreskowiak 16-Oct-12 10:51am    
Every control you want to have "designable" you're going to have to make you're own version of. This property would be defined in an Interface, then each of your designable controls would have to implement that interface. When the property value changes, you'll have to redraw your control any way you want to denote it's selected.

No, I'm not writing your code for you.

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