Form1.ShowInTaskbar 
Author Message
 Form1.ShowInTaskbar

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...)

Any suggestions?

Thanks,
Don Russell



Sun, 05 Sep 2004 14:31:38 GMT  
 Form1.ShowInTaskbar


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



Mon, 06 Sep 2004 11:31:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. difference between form1.visible = false and form1.hide

2. difference between form1.visible = false and form1.hide

3. How to call Form1 from Form2, using string wich is name of the form (Form1)

4. Shouldn't GetDC(form1.hWnd) = form1.hdc ???????

5. ShowInTaskbar property?

6. Help How to disable the Showintaskbar on a MDIform

7. Doesn't ShowInTaskBar

8. ShowInTaskBar has no effect

9. ShowInTaskBar via API? (VB6)

10. ShowInTaskbar & System Tray

11. Changing the ShowInTaskBar setting of a form?

12. ShowInTaskbar for modal windows

 

 
Powered by phpBB® Forum Software