Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I have form. In that form, I have created certian no of runtime controls. I want to move and resize these controls at runtime.

Please help me out from this issue.
[Email removed to avoid SPAM]
Posted
Updated 2-Oct-10 20:52pm
v2
Comments
Sandeep Mewara 3-Oct-10 2:52am    
1. Avoid giving email id
2. What have you tried? Your question does not says much. Add details and your effort.

You can simply keep reference to the created objects. Have a look at the link below. I think it's just the example source code you need.

http://www.freevbcode.com/ShowCode.asp?ID=5977[^]

Good luck!
 
Share this answer
 
Before adding them, get a count of the controls that are already on the form. When you add them, you know where in the Controls list the first dynamically moved item is, and index from there.

The Location property is what you're want to use to move them.
 
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