-
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? :)
-
You can remove controls from your project in a runtime only if they were added in a runtime. But what you can do, is to set up a flag and then check if the application already running, then do nothing.
------------------
Serge
Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
-
Have you tried, instead of trying to remove when you don't need it, trying to add it when you need it with VB6 supported functionality:
myForm.Controls.Add "Lib.Class", "CtrlName"
(not sure about the syntax but it looks like it)
Tipi