Search found 31 matches

by AdamUK
Tue Jul 25, 2017 8:22 am
Forum: PowerShell GUIs
Topic: Looking for a "Please wait..." or "Working..." form with animation
Replies: 1
Views: 4463

Re: Looking for a "Please wait..." or "Working..." form with animation

Several ways you can do this, but maybe worth having a read over:-
https://www.sapien.com/blog/2012/05/16/ ... ive-forms/
Look at the progress bar, or the job button.
by AdamUK
Wed Mar 22, 2017 9:46 am
Forum: PowerShell GUIs
Topic: Opening another form with credentials from Get-Credential
Replies: 8
Views: 3925

Re: Opening another form with credentials from Get-Credential

It's not best practice but from the deploy tab you have copy to clipboard so you could design a form then when you press the button on that form paste the copied clipboard code then you can pass the variable along that way
by AdamUK
Wed Mar 22, 2017 9:42 am
Forum: PowerShell GUIs
Topic: Text scrolling horizontally
Replies: 5
Views: 2763

Re: Text scrolling horizontally

Be it right or be it wrong I would make a textbox where user can enter a string put a submit button append the text to a txt file on the network then follow https://blogs.technet.microsoft.com/heyscriptingguy/2010/10/23/weekend-scripter-using-windows-powershell-to-make-a-marquee/ But assign status b...
by AdamUK
Wed Jan 25, 2017 1:41 am
Forum: PowerShell GUIs
Topic: Datagrid item selection + "loading" while executing
Replies: 41
Views: 16042

Re: Datagrid item selection + "loading" while executing

I do not know if this works, but this is the approach I mean...still at work btw so hence just trying to push you in the right direction.... $buttonStartJob_Click = { $buttonStartJob.Enabled = $false $items = Get-ADComputer -Filter { name -like 'mycomputer' } | Select-Object name, DNSHostName #Creat...
by AdamUK
Wed Jan 25, 2017 1:36 am
Forum: PowerShell GUIs
Topic: Datagrid item selection + "loading" while executing
Replies: 41
Views: 16042

Re: Datagrid item selection + "loading" while executing

Hi, I like to use datagridviews with things I do and loading bars etc. I'm no pro at designing powershell forms yet, but I believe your problem is not passing the data as an arguement. It seems like you have removed the -ArgumentList parameter $buttonStartJob.Enabled = $false #Create a New Job using...
by AdamUK
Wed Jan 25, 2017 1:26 am
Forum: PowerShell GUIs
Topic: How to use Powershell Forms to create and fill printable doc
Replies: 15
Views: 9314

Re: How to use Powershell Forms to create and fill printable doc

Just wanted to say thanks for posting the printing demo form, managed to use this in one of my forms yesterday :D sharing knowledge is great
by AdamUK
Thu Dec 22, 2016 1:11 pm
Forum: PowerShell GUIs
Topic: One button for multiple boxes
Replies: 5
Views: 2864

Re: One button for multiple boxes

I would just use the value assigned in the text box or drop down list as in when you run your function it would be like my-function $textbox.text
Then your running the function of the value in the textbox. Is this what you are after?
by AdamUK
Tue Dec 06, 2016 10:46 am
Forum: PowerShell GUIs
Topic: DataGridView selected cells value not working on Remote Desktop
Replies: 4
Views: 2236

Re: DataGridView selected cells value not working on Remote Desktop

THANK YOU SO MUCH! The code works perfect. Saved me getting a headache. I think I must owe you a few beers by now. Thanks again for your help :D
by AdamUK
Tue Dec 06, 2016 10:29 am
Forum: PowerShell GUIs
Topic: DataGridView selected cells value not working on Remote Desktop
Replies: 4
Views: 2236

Re: DataGridView selected cells value not working on Remote Desktop

Awesome thanks for the quick reply I will try this shortly. I'm on windows 10 and the terminal clients are windows 7 powershell 2. Thanks again was doing my head in will post another update shortly
by AdamUK
Tue Dec 06, 2016 9:14 am
Forum: PowerShell GUIs
Topic: DataGridView selected cells value not working on Remote Desktop
Replies: 4
Views: 2236

DataGridView selected cells value not working on Remote Desktop

Product: Powershell Studio 2016 (x86) Version:- 5.3.130 I spent ages designing a form which worked beautifully on my work computer. However a lot of users use a remote terminal server session to connect. And for whatever reason the code:- $datagridview1.SelectedCells.Value > $env:HOMEDRIVE\rows.txt ...