Search found 209 matches

by mxtrinidad
Sat Sep 22, 2018 10:45 am
Forum: PowerShell Studio
Topic: PowerShell Core not in Platform List
Replies: 1
Views: 113

Re: PowerShell Core not in Platform List

In order to see PowerShell Core under the platform ribbon menu it need to be install it to the default installation location given by Microsoft. So, when leaving it to default installation then it will be added automatically to the "Options" Console list. Then, any update to PowerShell Core, PowerSh...
by mxtrinidad
Fri Sep 21, 2018 3:37 pm
Forum: PowerShell GUIs
Topic: Textbox cursor position is reset after programmatically changed text property
Replies: 9
Views: 114

Re: Textbox cursor position is reset after programmatically changed text property

Thanks Jvierra!

Or, for looking at specific character(s):

Code: Select all

$textbox1_KeyPress = [System.Windows.Forms.KeyPressEventHandler]{
	#Event Argument: $_ = [System.Windows.Forms.KeyPressEventArgs]
if ($_.KeyChar -eq 'character_here') { ... #validation code# ... }
:
}
:)
by mxtrinidad
Fri Sep 21, 2018 2:27 pm
Forum: PrimalScript
Topic: Here-String Case
Replies: 5
Views: 162

Re: Here-String Case

Thank you for providing the sample code.

I saw that highlighting line 277, containing the 'R', will change to 'r' automatically.
We'll look into it!
by mxtrinidad
Fri Sep 21, 2018 2:15 pm
Forum: Windows PowerShell
Topic: EXE - Exit (close) Actions
Replies: 7
Views: 121

Re: EXE - Exit (close) Actions

Again, that's outside the executable and "x"-exit it's cause by a Windows mouse action.
The executable runs within the console and can't trap calls outside of the console.
by mxtrinidad
Fri Sep 21, 2018 12:14 pm
Forum: Windows PowerShell
Topic: EXE - Exit (close) Actions
Replies: 7
Views: 121

Re: Post Exist Action

The executable self-contained. There's no "x" button in a executable, only in Windows Form.
by mxtrinidad
Fri Sep 21, 2018 12:02 pm
Forum: PowerShell GUIs
Topic: Form stuck in minimized state while loop running?
Replies: 9
Views: 146

Re: Form stuck in minimized state while loop running?

That's a normal Windows Form behavior. In order to make it responsive you need to look into the following articles that will help create responsive forms: https://info.sapien.com/index.php/guis/gui-advanced-tips/creating-responsive-loops?highlight=WyJyZXNwb25zaXZlIl0= https://info.sapien.com/index.p...
by mxtrinidad
Fri Sep 21, 2018 10:53 am
Forum: PowerShell GUIs
Topic: Form stuck in minimized state while loop running?
Replies: 9
Views: 146

Re: Form stuck in minimized state while loop running?

So basically .... the issue comes down to responsive vs non-responsive forms? Right!
by mxtrinidad
Fri Sep 21, 2018 10:17 am
Forum: PowerShell GUIs
Topic: Textbox cursor position is reset after programmatically changed text property
Replies: 9
Views: 114

Re: Textbox cursor position is reset after programmatically changed text property

I still think you don't need a TextChanged event. You can loop thru the boxes doing validation, then only post the desired result when everything is validated. During the validation you can write back to the textbox. Also, you could change Button label to display during the validation process. You c...
by mxtrinidad
Fri Sep 21, 2018 9:52 am
Forum: PowerShell GUIs
Topic: Form stuck in minimized state while loop running?
Replies: 9
Views: 146

Re: Form stuck in minimized state while loop running?

What's the goal for this Proof-Of-Concept? What are you trying to make the form do?
Sorry! But, this is not clear enough.

Give us more detail!
:)
by mxtrinidad
Fri Sep 21, 2018 9:48 am
Forum: PowerShell GUIs
Topic: Textbox cursor position is reset after programmatically changed text property
Replies: 9
Views: 114

Re: Textbox cursor position is reset after programmatically changed text property

Based in what you're saying, something is missing. Why are you doing a textchange event when you're using a Input Textbox? I would just add the validation at the button event to make sure is correct. You won't move from that textbox unless is properly validated. I don't think you need to use the Tex...