Someone correct me if I'm wrong, but I'm not sure there is any way to update the form while kix is in the middle of a command, for example trying map a drive. But I don't think the form should just go black either. In the example I posted, the text that is displayed before the drive mapping occurs stays visible until the mapping is complete.

Maybe consider just changing the form icon to an hourglass while running commands? As for the $Form_DistLogin.Visible line, I believe that is just a boolean that allows you to set the visibility, or get the current visibility. Just running that line shouldn't really do anything except display whatever it returns to the console. So I'm not sure why it would be needed.

The below is how I have always shown and run my forms, and it has worked for just about every scenario.

 Code:
$Form_DistLogin.Center
$Form_DistLogin.TopMost = "True"
$Form_DistLogin.Show

While $Form_DistLogin.Visible
   $ = Execute($Form_DistLogin.DoEvents)
Loop

Exit 0