-
Feb 1st, 2000, 07:08 AM
#1
Thread Starter
Member
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?
-
Feb 1st, 2000, 11:45 AM
#2
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
sdymkov@microage.com
Access8484@aol.com
ICQ#: 51055819
-
Feb 1st, 2000, 11:48 AM
#3
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|