Hi, i'm having some problems disabling some controls (removing/deleting them would be fine!) from my program.

At form_load i'm trying to do
if app.previnstance then
disable thiscontrol
disable thatcontrol
end if

problem is winsock controls lack any enable/disable. Can anyone tell me how i would be able to get rid of these controls at run-time? i want them gone (any way they have no effect on the program is good) if another instance of the program is running.

can someone help me out?