Search found 49 matches

by lontru
Thu Mar 14, 2019 3:37 am
Forum: PowerShell GUIs
Topic: Marquee - progress bar how to use it?
Replies: 1
Views: 51

Marquee - progress bar how to use it?

https://info.sapien.com/index.php/guis/gui-controls/spotlight-on-the-progressbar-control I have a loop that run when i press a button until a condition is meet. so i want to use the Marquee animation but i cant figure out how to use it? Marquee Indicates progress by continuously scrolling a block ac...
by lontru
Sun Jan 27, 2019 2:55 pm
Forum: PowerShell GUIs
Topic: Get cell content before removing ? datagridview1.Rows.Remove
Replies: 6
Views: 178

Re: Get cell content before removing ? datagridview1.Rows.Remove

$buttonColumns_Click={ $datagridview1.SelectedRows | ForEach-Object{ Write-Host ('{0}|{1}|{2}' -f ($_.Cells['name'].Value),($_.Cells['length'].Value), ($_.Cells['Fullname'].Value)) } } I can use above code to export the selected row to a log or csv file - so if the user want to undo the delete i ca...
by lontru
Sun Jan 27, 2019 1:31 pm
Forum: PowerShell GUIs
Topic: Get cell content before removing ? datagridview1.Rows.Remove
Replies: 6
Views: 178

Re: Get cell content before removing ? datagridview1.Rows.Remove

how do i export selected rows as to an csv file?
by lontru
Sun Jan 27, 2019 3:38 am
Forum: PowerShell GUIs
Topic: Get cell content before removing ? datagridview1.Rows.Remove
Replies: 6
Views: 178

Get cell content before removing ? datagridview1.Rows.Remove

Hi SAPIANS, I want to log what get removed from the gridview I have this for deleting selected rows $button_Remove_Click={ $datagridview1.SelectedRows | ForEach-Object { $datagridview1.Rows.Remove($_) log -message "$_" } } How do i get each cell content value so i can log it to the log. like this: R...
by lontru
Mon Jan 14, 2019 2:23 pm
Forum: PowerShell Studio
Topic: Find/Replace function - how to clear the mark again?
Replies: 2
Views: 479

Find/Replace function - how to clear the mark again?

Powershell Studio 2017

I have used the Find/Replace tool and pressed Mark all

How do i clear does marks again? red tags at the line numbers?
marks_all.PNG
marks_all.PNG (35.62 KiB) Viewed 479 times
by lontru
Tue Jan 08, 2019 3:20 am
Forum: PowerShell GUIs
Topic: Multi-Form - credential passing
Replies: 7
Views: 371

Re: Multi-Form - credential passing

_How do i perform a cleanup routine when the childform is closing?

So i need to pass a unique id to the childform as a argument and pass that to remove-job when the child form is closing?

Or does all the jobs disappear when the mainform closeds?
by lontru
Fri Jan 04, 2019 3:57 am
Forum: PowerShell GUIs
Topic: Multi-Form - credential passing
Replies: 7
Views: 371

Re: Multi-Form - credential passing

it work like a charm... have work a little with your demo...is there a way open more then one sub psf form? right now it lock so you need to close a open subform before you can start a new subform? $buttonCallChildForm_Click={ $sb = ${function:Show-ChildForm_psf} $obj = [pscustomobject]@{Text = 'Hel...
by lontru
Thu Jan 03, 2019 12:50 am
Forum: PowerShell GUIs
Topic: Multi-Form - credential passing
Replies: 7
Views: 371

Re: Multi-Form - credential passing

Have sleep on this and come up with to ways 1. Call another exe with start-process -credential a single form exe created from psf can you pass param to this exe or do you need to build it as a project? 2. Convert the project main to support param. Main call it self with start-process -credential but...
by lontru
Wed Jan 02, 2019 12:00 am
Forum: PowerShell GUIs
Topic: Multi-Form - credential passing
Replies: 7
Views: 371

Multi-Form - credential passing

Hi working on a tool :D I want this functionality: Main form get user credential : get-credential Launch a child form with these credential. So somehow do a runas on the childForm would be great but how? $buttonCallChildForm_Click={ #TODO: Place custom script here if((Show-ChildForm_psf) -eq 'OK') {...