Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing controls when application is runinng

Status
Not open for further replies.

LordDuzy

Programmer
Feb 12, 2004
22
PL
I dont know how to unload a control from the form when application is running. I'm interested if ther's an other way then changeing the visible property to false.
 
If your control is part of a runtime generated control array, unload cntl(x) should work.

You can't unload controls placed on the form at design time though, unless anyone knows any different, and I doubt they will...

Why isn't visible = false acceptable to you?

mmilan
 
I'm need to change the controls position.

For each ctrl in Form1.Controls
ctrl.Left = ctrl.Left - 500
Next ctrl

I know i can put a If then case but there is to many objects
 
I still don't see why you would want to unload the control.

Stick a form.refresh at the end of your code and it should work, should it not?

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top