remember past entries

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: 236
Joined: Tue Feb 25, 2014 1:01 pm

remember past entries

Post by mqh777 » Tue Mar 13, 2018 7:40 am

PowerShell Studio 2018 v5.5.149
32 or 64 bit version of product: 64
Operating system: windows 10 & Windows 7
32 or 64 bit OS: Both

we have a forum that has a textbox field. In this textbox field we enter the computer name. Then we can press a variety of different buttons to get different types of information about the computer. Is there a way in PowerShell Studio to have a drop down text box that remembers the last 5 computer names you've entered?

cody m

Re: remember past entries

Post by cody m » Tue Mar 13, 2018 7:55 am


User avatar
Posts: 39
Joined: Mon Mar 05, 2018 7:38 am

Re: remember past entries

Post by StillLearning » Tue Mar 13, 2018 8:20 am

I'm thinking a combobox is the only way to do this.

I could be wrong

User avatar
Posts: 5725
Joined: Thu Aug 18, 2011 4:56 am

Re: remember past entries

Post by davidc » Tue Mar 13, 2018 10:42 am

You could potentially use the TextBox's AutoCompleteCustomSource for history, but a combobox is a better alternative. ... ox-control

A while ago, I created a sample a saves the combobox's history. I will use it to create a Control Set that you can drag and drop from PowerShell Studio's designer.
SAPIEN Technologies, Inc.