Search found 15 matches

by aartogba
Fri Sep 21, 2018 10:05 am
Forum: PowerShell GUIs
Topic: Textbox cursor position is reset after programmatically changed text property
Replies: 15
Views: 5257

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

Sorry I didn't explain the whole thing. Well, I'm using textchanged event because I want to dynamically update it when user is entering text because this textbox is filling two others textboxes. In fact, there are two textboxes called $txtFirstName and $lastname which fills ID and email textboxes as...
by aartogba
Fri Sep 21, 2018 9:14 am
Forum: PowerShell GUIs
Topic: Textbox cursor position is reset after programmatically changed text property
Replies: 15
Views: 5257

Textbox cursor position is reset after programmatically changed text property

Hi everyone, I'm having a hard time to code this one. I have to validate input on a textbox control and everytime I correct the input by setting the text property of my textbox in the textchanged event handler, the cursor position is reset to 0. Even worse, the event handler is retriggered because o...
by aartogba
Sun Jul 09, 2017 8:23 am
Forum: PowerShell GUIs
Topic: Bug with event handler
Replies: 5
Views: 1693

Re: Bug with event handler

Thank you very much. I finally make it work by removing the whole code from script and run empty form.
by aartogba
Sat Jul 08, 2017 8:22 am
Forum: PowerShell GUIs
Topic: Bug with event handler
Replies: 5
Views: 1693

Re: Bug with event handler

I tried to add them back one a time like you said and unfortunately it seems like I am stuck in a loop. When I switch back and forth between "Script" and "Designer" tab, I get the pop up each time to Insert, Remove or Ignore the missing handler that I've just added and PS Studio ...
by aartogba
Thu Jul 06, 2017 6:01 am
Forum: PowerShell GUIs
Topic: Bug with event handler
Replies: 5
Views: 1693

Bug with event handler

Hi, I'm experiencing a weird problem. I don't know what I did but it seems that my current form project is not seeing event handlers in the script anymore. I mean by that when I click on any event in the "Properties" pane, the Combo Box of that event doesn't show event handlers like it usa...