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.
Locked
User avatar
Chris.Ediger
Posts: 29
Joined: Tue Oct 24, 2017 9:33 am

Event on tab or mouse click?

Post by Chris.Ediger » Mon Jan 06, 2020 2:22 pm

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
brittneyr
Site Admin
Posts: 307
Joined: Thu Jun 01, 2017 7:20 am

Re: Event on tab or mouse click?

Post by brittneyr » Mon Jan 06, 2020 2:54 pm

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

jvierra
Posts: 14155
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Event on tab or mouse click?

Post by jvierra » Tue Jan 07, 2020 12:08 am

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.

Locked