Event on tab or mouse click?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 43
Joined: Tue Oct 24, 2017 9:33 am

Event on tab or mouse click?

Post by Chris.Ediger »

I would like to trigger an event when a user clicks or tabs into a field.
I have a combo box that contains a username. The list is taken from AD. Once the user selects the name they want I would like a text box to be populated with info based on the username field. Is there a way to trigger an event like this?

I searched through the events available and didn't see anything that looked like what I was looking for.

User avatar
Site Admin
Posts: 545
Joined: Thu Jun 01, 2017 7:20 am

Re: Event on tab or mouse click?

Post by brittneyr »

[Topic moved by moderator to PowerShell GUI forum]
Brittney Ryn
SAPIEN Technologies, Inc.

Posts: 14546
Joined: Tue May 22, 2007 9:57 am

Re: Event on tab or mouse click?

Post by jvierra »

I recommend reading about the controls and how to use them in the Sapien info center.
Here is how to use a ComboBox control: http://info.sapien.com/index.php/guis/g ... ox-control

The control articles are quickly available by right clicking on the control in the toolbox.