Page 1 of 1

Posting to Powershell Studio Forum Denied????

Posted: Wed Jun 15, 2022 7:02 pm
by mwilliamsocc
Greetings - I am a valid customer - just renewed my license via my company, installed powershell studio 2022 just fine, my account shows a valid support agreement but when I go to post in the powershell studio forum it tells me that I cant because I dont have a valid license.. HUH???

I am mwilliams@theocc.com

Please advise…

Re: Posting to Powershell Studio Forum Denied????

Posted: Thu Jun 16, 2022 12:13 am
by Alexander Riedel
I do see something odd on your account. The customer role is missing. I am leaving it this way so our web folks have a chance to examine what happened when they get in this morning.
In the meantime, if you need help with something, please post here, I'll see it anywhere :D

Re: Posting to Powershell Studio Forum Denied????

Posted: Thu Jun 16, 2022 6:40 am
by mwilliamsocc
Sure…I was simply looking for the best way to import a single column of items from a text file (no CSV involved) into a datagridview - I will stick whatever the proper method is to do this into the onload event of the main form so hat the text is loaded from the get go.. I see some things on the web but none of them really fit what I am trying to do…

Re: Posting to Powershell Studio Forum Denied????

Posted: Thu Jun 16, 2022 8:14 am
by Alexander Riedel
[Topic moved by moderator]
I moved your question here to this forum, you are most likely to get an answer here.

Re: Posting to Powershell Studio Forum Denied????

Posted: Thu Jun 16, 2022 8:55 pm
by jvierra
Where are the items. They have to be stored somewhere. Even a single column of items in a file can be loaded as a CSV by just giving a "-header" to the Import-Csv command.

Re: Posting to Powershell Studio Forum Denied????

Posted: Thu Jun 16, 2022 9:04 pm
by jvierra
Here is a simple example:
  1. $FormEvent_Load={
  2.     $csv = Import-Csv d:\scripts\StateCity.csv
  3.     $datagridview1.DataSource = [System.Collections.ArrayList]$csv
  4. }