none
Powershell ComboBox selected items

    Question

  • Hi Guys,

    I have made a form in powershell that contains a textbox and a combobox.My goal is to display the value selected in the combobox in the textbox as soon as the item from the dropdown list is selected without using any buttons.

    Thanks in advance

    Thursday, December 27, 2012 2:43 AM

Answers

  • Hi Guys,

    I have made a form in powershell that contains a textbox and a combobox.My goal is to display the value selected in the combobox in the textbox as soon as the item from the dropdown list is selected without using any buttons.

    Thanks in advance

    The OnChange event is what we use for all controls when we want the change to update other things.

    http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindexchanged.aspx

    Learn how to read the docs and all events will become useful


    ¯\_(ツ)_/¯


    • Edited by jrv Thursday, December 27, 2012 2:56 AM
    Thursday, December 27, 2012 2:54 AM

All replies