Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 311

PowerShell GUIs • Textbox Selected Item to String?

$
0
0
I know I have done this plenty of times before but I cannot get it to work today.

I have a textbox that I populate with items from Active Directory. I want the selected item to show up in another (single line) text box.

I attempted something like the following:

Code:


$selectedGRP = $txtbGrpUsers.SelectedText
$StringText = $selectedGRP.ToString()
$textbox2.Text = $StringText
But this does not work for me... Code complete doesnt even like "selectedtext" which is what I found when doing google searches searching for help on this. I know this is super rudimentary and apologize for bugging the collective with it.

Thanks for your help!

Statistics: Posted by mwilliamsocc — Wed Oct 16, 2024 4:12 pm — Replies 0 — Views 37



Viewing all articles
Browse latest Browse all 311

Trending Articles