Search found 13887 matches

by jvierra
Thu Nov 14, 2019 4:28 am
Forum: PowerShell GUIs
Topic: Change color of single cell while adding rows
Replies: 2
Views: 19

Re: Change color of single cell while adding rows

Change cell colors in the "paint" event where you can check the value of the cell and set the color. Cells can always be accessed by just specifying the cell name in the row: Row.Cells['mycell'].Style.Backcolor = 'Red' If this doesn't work then your columns may have a different name or have not been...
by jvierra
Wed Nov 13, 2019 3:52 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Stop and think about this. We set the state of a columns checkbox in the data and not in the column. Just add a Boolean to the data that is the checkbox column and its value will determine the state of th checkbox. Please review the code posted. It clearly shows how to do this without a lot of funct...
by jvierra
Wed Nov 13, 2019 2:56 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Here is a simple example of how to use a DGV and how to check and uncheck all checked cells in a column.

Download the attached file and open in PSS to review the code and run the form.
by jvierra
Wed Nov 13, 2019 2:43 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Well... PS Studio is nice but now i have no idea what im looking at anymore. I may as well use ISE until i figure out how to work this thing. Any chance i could get help with my original problem? No idea what your original problem is. The code you posted is bad syntactically. Create a new form usin...
by jvierra
Wed Nov 13, 2019 2:40 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Here is something you should study before trying advanced PS coding in or out of forms.

The PowerShell Best Practices and Style Guide
by jvierra
Wed Nov 13, 2019 2:33 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

The issue with N++ is no syntax checking and no autocomplete or Intellisence as well as no advanced debugging. It is useful for simple edits. ISE is somewhat better but PSS has everything you will ever need and more.
by jvierra
Wed Nov 13, 2019 2:06 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Weird. Pasted it directly from Notepad++. Fixed? Maybe? Notepad++ is a terrible PS editor. Either use VSCode or notepad or download a trial copy of PowerShell Studio. It will give you 30 days of forms design practice and will help you to learn how to create forms. The tool will also help you learn ...
by jvierra
Wed Nov 13, 2019 1:51 pm
Forum: PowerShell GUIs
Topic: Check all checkboxes not from column header
Replies: 12
Views: 78

Re: Check all checkboxes not from column header

Can you please reformat your code so it is readable. It has way too much space and the lines are all out of place. This effects some browser more than others.

Paste plain, formatted text using "code <code here>/code" around the text. Place square brackets around "code" and "/code".
by jvierra
Tue Nov 12, 2019 3:24 pm
Forum: PowerShell GUIs
Topic: How to develop in hi-rez for low-rez
Replies: 6
Views: 117

Re: How to develop in hi-rez for low-rez

Scaling and hi-dpi are a bit of a classic catch-22. You can do basic scaling by enabling hi-r4ewz support. More complex scaling requires a bit of careful programming. In the early days of Windows we would build multiple forms definitions that used the same code. Now we can scale a form and display i...