Quote:
> I have a checkbox on my "preferences page" so the user can select "Show in
> taskbar" or not.
> However, when my code issue sme.showintaskbar = false
> I get a run time error about the interface is restricted...
> I'm using VB 6 Pro on Win 2000 Pro...
> How do I do this? (What I'd like to do is add it to the system "tray" as
> just a little icon... or maybe even just hidden altogether...)
The ShowInTaskbar property is read-only at runtime. If you hide the form,
however, the taskbar button will disappear even if ShowInTaskbar = True.
So, it basically boils down to you making the decision of whether to have a
taskbar button for the form at design-time. Unless there is an API solution
for dynamically adding/removing the taskbar button of a visible form (there
may very well be one; I've never looked into it), you cannot make this a
user preference.
Or perhaps I'm not fully understanding what you're trying to do.
Mike