wiz, was able to to verify expected behavior of hiding/showing ProgressBar with this code. In terms of negating the usefullness of .visible, the following statements have two very different meanings:

$ProgressBar.Visible = 0/1

Hides or shows the progressbar. The object still persists and is 100% functional and usable, can even set properties and change the Value while its hidden. This statement:

$ProgressBar = 0

Disposes the object completely so it doesn't exist anymore. Calling properties and methods on a disposed handle may or may not generate Kixtart runtime errors.

Heres the code:

code:
Break On

$Form = CreateObject("Kixtart.Form")
$Form.Size = 400,200

$ProgressBar = $Form.ProgressBar()
$ProgressBar.Center
$ProgressBar.Value = 50

$Button = $Form.Button()
$Button.Top = 10
$Button.Left = $Form.ClientWidth-$Button.Width-10
$Button.OnClick = "Button_Click"

Function Button_Click
$ProgressBar.Visible = Not $ProgressBar.Visible
EndFunction

$Form.Center
$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents)
Loop

-Shawn

[ 06. November 2002, 13:59: Message edited by: Shawn ]