Search found 89 matches

by boyddt_co
Wed Oct 21, 2015 5:44 pm
Forum: PowerShell GUIs
Topic: retrieving control information from form
Replies: 2
Views: 3854

Re: retrieving control information from form

Makes sense...

Thanx
by boyddt_co
Wed Oct 21, 2015 2:47 pm
Forum: PowerShell GUIs
Topic: retrieving control information from form
Replies: 2
Views: 3854

retrieving control information from form

I have a very simple test form that I'm working with and I'm trying to pull the type of controls that are on the form. This is just me playing around with no specific results that I'm get. I have a function that cycles through the controls pulls the type and then to IF statements. The only way I can...
by boyddt_co
Mon Jul 28, 2014 2:37 pm
Forum: PowerShell GUIs
Topic: Form locking and unlocking
Replies: 2
Views: 2849

Re: Form locking and unlocking

one other issue, if I create a smaller form with just the unlock picture can I force it to always be on top so that it is always visible?
by boyddt_co
Mon Jul 28, 2014 2:33 pm
Forum: PowerShell GUIs
Topic: Form locking and unlocking
Replies: 2
Views: 2849

Form locking and unlocking

I have a form that will be displaying processing data out on the manufacturing floor. The operators will need to update the form throughout the day as they process orders. The updates are done by simply tapping the cell in question to change the current status. This will all be done on a touch scree...
by boyddt_co
Tue Jul 22, 2014 1:04 pm
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

Re: deleting items from a listbox

here is the code that does what I want. Thank you for your help.

$buttonClearSelectedSun_Click={

$selectedCount = $lb_sun.SelectedItems.Count
for($selectedCount;$selectedCount -ge 1; $selectedCount--)
{
$idx = $lb_sun.SelectedIndex
$lb_sun.Items.RemoveAt($idx)
}

}
by boyddt_co
Tue Jul 22, 2014 7:00 am
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

Re: deleting items from a listbox

one listbox with 6 items. highlight items 2, 4 & 6. click button and have items 2, 4 & 6 removed from the listbox. one click.
by boyddt_co
Mon Jul 21, 2014 2:52 pm
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

Re: deleting items from a listbox

OK, if you look at the form it is broken down into four areas; cell, machine, parts and the days of the week. A user would choose the cell then the machine. This will populate lb_parts with the possible part numbers that the machine can produce. The user would then highlight the parts that they want...
by boyddt_co
Mon Jul 21, 2014 1:04 pm
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

Re: deleting items from a listbox

So I tried two examples and neither is working how I want. Yours, as listed below, didn't do anything and I'm not sure when 'SelectedIndexChanged' fires. The next one worked but I had to click the button for each item selected. Workable but not exactly what I was hoping for. $lb_mon_SelectedIndexCha...
by boyddt_co
Mon Jul 21, 2014 10:59 am
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

Re: deleting items from a listbox

Thank you for you input. I found the command from a different page and had just finished testing when you responded. The reason I didn't just delete the items is that I didn't know what the command was. I tried one way but with multiple items selected it would delete the first one but then the index...
by boyddt_co
Mon Jul 21, 2014 8:53 am
Forum: PowerShell GUIs
Topic: deleting items from a listbox
Replies: 15
Views: 16856

deleting items from a listbox

I have a list box that I need to delete some (selected) items from. I know from an Outlook project that I need to count from the bottom of the index and work my way up so as not to break the index. I can get the count of items and but I'm struggling with the is selected part of the equation. Can som...