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.
Locked
User avatar
mqh777
Posts: 187
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?

User avatar
cody m
Site Admin
Posts: 105
Joined: Thu Jun 01, 2017 7:20 am

Re: remember past entries

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

[TOPIC MOVED BY MODERATOR]
Cody McCants
SAPIEN Technologies, Inc.

User avatar
StillLearning
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
davidc
Posts: 5126
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.

https://info.sapien.com/index.php/guis/ ... 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.
David
SAPIEN Technologies, Inc.

Locked