Search found 88 matches

by IanUoY
Fri Sep 06, 2013 4:33 am
Forum: PowerShell GUIs
Topic: ComboBox DropDownList component colour
Replies: 4
Views: 384684

ComboBox DropDownList component colour

I want the users to select from a list, but not be able to edit, so I've added a ComboBox in DropDownList mode. The problem is that the backcolor only applies to the list, not the component on the form eg:- Capture2.PNG As you can see it displays as a grey colour, yet if I set as DropDown then the c...
by IanUoY
Fri Sep 06, 2013 12:58 am
Forum: PowerShell GUIs
Topic: Pressing Return Key Exits Program
Replies: 2
Views: 1855

Pressing Return Key Exits Program

I'm sure this must be very obvious, but alas it's eluding me. When I run my simple test form, it has an ok button and a few test fields. If I hit return at any point the form exits as it does if I click the Ok button There is no underlying code in the button_click event, so just wondering where this...
by IanUoY
Thu Sep 05, 2013 6:37 am
Forum: PowerShell GUIs
Topic: dynamically move component
Replies: 5
Views: 3326

Re: dynamically move component

Sorted in one of two ways (although if anyone else could advise how to reference an object, great). MY first clunky way was to:- #$labelTextRequired.Location = New-Object System.Drawing.Point(($panel1.Location.X + $textboxForename.Location.x),($panel1.Location.y + $textboxForename.Location.y + 20)) ...
by IanUoY
Thu Sep 05, 2013 6:25 am
Forum: PowerShell GUIs
Topic: dynamically move component
Replies: 5
Views: 3326

Re: dynamically move component

The component in question sits on a panel object. The location of my example textbox indicates it's location is at 106,64....so my idea was to simply move a label to just underneath the textbox. The label is red and has simple text of "* required" and I set the focus back to the textbox in question ...
by IanUoY
Thu Sep 05, 2013 6:09 am
Forum: PowerShell GUIs
Topic: dynamically move component
Replies: 5
Views: 3326

Re: dynamically move component

Brilliant....almost :-) I think the co-ordinates I am using relate to the relative position on the panel I've grouped my components onto, so when I apply the code, it's in the wrong position. Appears to be relative to the form. Can I reference the panel object doing this? I presume this would then u...
by IanUoY
Thu Sep 05, 2013 4:02 am
Forum: PowerShell GUIs
Topic: dynamically move component
Replies: 5
Views: 3326

dynamically move component

Quite simply I wanted to move a label around my form to advise a user that a particular text box requires entry. I was trying the following and variations but cannot get anything to work:-

$labelTextRequired.Location = System.Drawing.Point(106,84)

Regards

Ian
by IanUoY
Wed Aug 28, 2013 1:00 am
Forum: PowerShell GUIs
Topic: Which radio button selected in a group
Replies: 1
Views: 1680

Which radio button selected in a group

Is there a simple bit of code that I can use to determine which radiobutton has been selected in a group, rather than interate through each manual to see which has been checked?

Regards
by IanUoY
Thu Aug 01, 2013 4:22 am
Forum: PowerShell Studio
Topic: Quick Guide follow up topics
Replies: 2
Views: 1651

Quick Guide follow up topics

I've just read the brief getting started guides for powershell studio 2012, and the final page of part 2 refers to followup articles, eg using the debugger to fix my script and 4 others.

I've had a delve but cannot find them. Being new to Sapien perhaps you could advise where these are?

Regards