Search found 28 matches

by toddkenn@gmail.com
Wed Jun 14, 2017 5:03 pm
Forum: PowerShell GUIs
Topic: Removing Rows from unbound DataGridView control
Replies: 7
Views: 6824

Re: Removing Rows from unbound DataGridView control

So what worked for me to do multi-select with Delete just incase anyone else is trying to do this. the key was the ConvertTo-DataTable as pointed out by jeirra. Thanks for the hint. $deleteRowToolStripMenuItem_Click={ $datagridview1.SelectedRows | ForEach-Object { $datagridview1.Rows.Remove($_) } }
by toddkenn@gmail.com
Wed Jun 14, 2017 1:28 pm
Forum: PowerShell GUIs
Topic: Removing Rows from unbound DataGridView control
Replies: 7
Views: 6824

Re: Removing Rows from unbound DataGridView control

Thats what I did initially and it didn't work, didn't do anything. So I thought that I had to implement it myself using a context menu...but that is proving hard to do and may not be worth it if I can just do it via select and delete key. I don't get any errors in the console when hitting delete. Ma...
by toddkenn@gmail.com
Wed Jun 14, 2017 1:03 pm
Forum: PowerShell GUIs
Topic: Removing Rows from unbound DataGridView control
Replies: 7
Views: 6824

Re: Removing Rows from unbound DataGridView control

I'm assuming that itwould be used with the UserDeletingRow method?

I'm trying to to implement a right click event that deletes the row the user has selected.
by toddkenn@gmail.com
Wed Jun 14, 2017 7:15 am
Forum: PowerShell GUIs
Topic: Removing Rows from unbound DataGridView control
Replies: 7
Views: 6824

Removing Rows from unbound DataGridView control

Hi, I'm trying to remove some selected rows in a Datgridview using SelectedRows and the Rows.RemoveAt member, but nothing happens. I can't seem to figure this out and need a push in the right direction. My DatGridView is using a Datsource of an Array named $dvgItems So I'm simply loading the datagri...
by toddkenn@gmail.com
Fri Jun 09, 2017 11:40 am
Forum: PowerShell Studio
Topic: Removed Assemblies keep showing backup in my project
Replies: 3
Views: 1487

Re: Removed Assemblies keep showing backup in my project

I've searched the code multiple times and there are no load-module statements. It was embedded in the Main.psf file.
by toddkenn@gmail.com
Fri Jun 09, 2017 7:48 am
Forum: PowerShell Studio
Topic: Removed Assemblies keep showing backup in my project
Replies: 3
Views: 1487

Removed Assemblies keep showing backup in my project

Product, version and build: PowerShell Studio 2017 v5.4.140 (*** Please do not write "latest" as a version, specify a version number ***) 32 or 64 bit version of product: 64 Operating system: Windows 10 32 or 64 bit OS: 64 PowerShell Version: 5 I have a project that I was loading in an ext...
by toddkenn@gmail.com
Tue Apr 25, 2017 4:02 pm
Forum: PowerShell
Topic: DOT Source Reference Function in Job Tracker
Replies: 5
Views: 2941

Re: DOT Source Reference Function in Job Tracker

true so some of the code is not correct then, but still poses the problem. Looks like maybe using the job-tracker might not be what I need to use. thanks for the help.
by toddkenn@gmail.com
Tue Apr 25, 2017 3:34 pm
Forum: PowerShell
Topic: DOT Source Reference Function in Job Tracker
Replies: 5
Views: 2941

Re: DOT Source Reference Function in Job Tracker

I wouldn't call it over generalization, I'm just trying not to duplicate code that's already written. Why is it that I can DOT source a file that contains functions and then use the functions within the scope of the script but when you go out of scope in another thread such as a job you can't DOT so...
by toddkenn@gmail.com
Tue Apr 25, 2017 1:32 pm
Forum: PowerShell
Topic: DOT Source Reference Function in Job Tracker
Replies: 5
Views: 2941

DOT Source Reference Function in Job Tracker

So I am converting a utility I wrote for Powershell into a GUI app using Forms. Want my form to be responsive "read all the articles" so I decided to use the job-tracker and integrate my code. The problem is I call a function from within the JobScript by passing in the function and recreat...
by toddkenn@gmail.com
Mon Feb 20, 2017 9:02 am
Forum: PowerShell
Topic: How to redirect ouput from a packaged script running from Task Scheduler?
Replies: 1
Views: 1416

How to redirect ouput from a packaged script running from Task Scheduler?

Hi - I have a script that I generated into a packaged EXE and I run that through Task Scheduler. I want to get the console output that this packaged EXE generates into a logfile usingg redirecdtion. For some reason I cannot seem to figure this out. I've tried putting the redirect to the log file rig...