Search found 202 matches

by Lembasts
Tue May 21, 2019 3:26 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

Thanks.
Do you have any suggestions other than a timer that I could use?
Essentially I want the form displayed as soon as they logon and not really allow them to do anything until they have completed a button on the form.
by Lembasts
Tue May 21, 2019 2:30 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

Thanks.
When I saw this:
https://social.technet.microsoft.com/Fo ... powershell
I decided it was way to hard.
Looks like Im back to the timer thing...
by Lembasts
Mon May 20, 2019 8:54 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

So they dont like my timer as people can alt-tab, perhaps launch task manager quickly and kill my task.
So can a window be displayed in secure desktop mode?
by Lembasts
Sun May 19, 2019 6:52 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

I came up with a solution that will work.
I start a timer when the form loads and if they dont press a specific button on the form within 60 seconds, they will be logged off.
by Lembasts
Sun May 19, 2019 4:02 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

I think the term is 'Secure desktop' form.
by Lembasts
Sun May 19, 2019 3:41 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

Well there's something I am still missing. I compile this form into an exe and launch the exe. The form displays but I can still interact with the desktop. What do I need to do so that when the exe is launched, everything goes dark, like a UAC prompt, and wont let me continue or interact with anythi...
by Lembasts
Fri May 17, 2019 6:09 am
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Re: Displaying a modal form

In which case I am using the wrong terminology.
I thought modal meant the window is displayed preventing entering anything else anywhere else on the desktop until you deal with the window (like the UAC prompt).
Whats that called and how do I do that (Can it be done?)
by Lembasts
Thu May 16, 2019 10:07 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 16
Views: 337

Displaying a modal form

Greetings, I have a single form that I need to display modally. Google tells me its the showdialog method. So I put that in my load event and it didnt go modal and the error said it shouldnt be visible. So I put a $form1.visible = $false before my $form1.showdialog() in my load event and its still n...
by Lembasts
Mon May 06, 2019 2:17 pm
Forum: PowerShell GUIs
Topic: Validating tab page controls
Replies: 3
Views: 196

Re: Validating tab page controls

Normally you cannot set the $this variable but I cheat :-) The validating event calls my function which automatically passes the value of $this. But when I call the same function outside of the validating event, I also pass a control which gets assigned to the variable $this in the function which is...
by Lembasts
Sun May 05, 2019 8:01 pm
Forum: PowerShell GUIs
Topic: Validating tab page controls
Replies: 3
Views: 196

Re: Validating tab page controls

I have a good workaround.
As it happens all my validating events call a generic data validation subroutine thus: $_.Cancel = confirm-validdata 'NotEmpty'
So instead of trying to invoke the validating event, I can just call my data validation subroutine directly. That'll do for me.