KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

ShowInTaskbar and VBScript

 
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic
View previous topic :: View next topic  
Author Message
garios
KiXforms Dabbler
KiXforms Dabbler


Joined: 20 Jun 2008
Posts: 5

PostPosted: Sat Jun 21, 2008 12:47 pm    Post subject: ShowInTaskbar and VBScript Reply with quote

Hi!

I don't know what's wrong here, I am trying to use ShowInTaskBar property with VBScript to hide my form from the taskbar but it doesn't seem to work usign kixforms classic. Here is the code.
----------------
Set System = CreateObject("Kixtart.System")
Set Root = System.Form()
Root.Text = "Root"
Set Form = System.Form(Root)
Form.ShowInTaskBar = False
Form.MaximizeBox = False
Form.MinimizeBox = False
Form.Text = "Form"
Form.SysMenu = False
Form.Show
Do While Form.Visible
FormDoEvents = Form.DoEvents
If not FormDoEvents = "" Then Execute(FormDoEvents)
Loop
----------------------
But the form still shows on the TaskBar
I also tried using Kixforms.NET and this piece seems to work

----------------------
Set System = CreateObject("KixForms.System")
Set Form = System.Form()
Form.MaximizeBox = False
Form.MinimizeBox = False
Form.Text = "Test"
Form.ShowInTaskBar = False
'Form.SysMenu = False
Form.Show
Do While Form.Visible
FormDoEvents = Form.DoEvents
If not FormDoEvents = "" Then Execute(FormDoEvents)
Loop
----------------------
I realized in FixForms.NET I don't need a hidden parent form to hide my actual form from the TaskBar but SysMenu doesn't work here.

So two questions,
Why ShowInTaskBar does't work for me in Classic Kixforms? I've tried with version 2.46.55 and 2.47.4
What's the equivalent of SysMenu in KixForms.NET?

Thanks!
Back to top
View user's profile Send private message
garios
KiXforms Dabbler
KiXforms Dabbler


Joined: 20 Jun 2008
Posts: 5

PostPosted: Sat Jun 21, 2008 1:19 pm    Post subject: Reply with quote

I've found that I can use Form.ControlBox = False instead Form.sysmenu = False and ControlBox seems to work for classic and .NET kixforms.

So now I just need to figure out why ShowInTaskBar doesn't work in classic mode.
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Jun 26, 2008 12:21 am    Post subject: Reply with quote

OMG!!!

It's vb.Script.... geremoff!!!
try this for kf.classic:

Code:

Set System = CreateObject("Kixtart.System")
Set Form = System.Form()
Form.Text = "Root" 
Form.ShowInTaskBar = False
...



Untested! Off to wash my keayboardz. Kthxbye Mr. Green

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
garios
KiXforms Dabbler
KiXforms Dabbler


Joined: 20 Jun 2008
Posts: 5

PostPosted: Fri Jun 27, 2008 1:09 am    Post subject: ShowInTaskbar and VBScript Reply with quote

Well, sorry is VBS but unfortunately working within windows applications there is no much to choose from, is either VBS or JS

In any case I've tried that and it doesn't work for me, I can still see the form in the Taskbar using kf.classic.

Thanks for your help!

-Gustavo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group