Have you tried changing the window’s menubar itself? Window.MenuBar seems to imply you can set the menu bar to none (however it does not state whether you can use the string none, or if nil works, or how you do that) so see if that might be possible to do.
To hide the taskbar use SW_HIDE, and to show it back SW_SHOWNA.
But if a declare is too complex, the alternative is to use two windows :
A plain box window when the user is not logged
A normal window with its menu when the user is logged
Make both windows exactly the same size, make sure to place them exactly at the same left and top, and upon login, simply switch from one to the other. Close the first one and show the second.
[quote=128917:@Paul Lefebvre]As Tim notes above, Window.MenuBar can be used to show or hide the menu bar. This code in a PushButton on the Window, toggles the menu bar on or off:
If Self.MenuBar <> Nil Then
Self.MenuBar = Nil
Else
Self.MenuBar = MainMenuBar
End If[/quote]