Support Forums

Search found 9714 matches

by jvierra
Wed Sep 28, 2016 9:55 pm
Forum: Windows PowerShell
Topic: DataGridView Row Color
Replies: 6
Views: 24

Re: DataGridView Row Color

Example:

$datagridview.Rows[0].Cells[0].Style.BackColor = 'Red'
by jvierra
Wed Sep 28, 2016 9:50 pm
Forum: Windows PowerShell
Topic: DataGridView Row Color
Replies: 6
Views: 24

Re: DataGridView Row Color

Write-Output does not change colors.. What are you trying to do? Did you read all of the link I posted?

You cannot change the row color. YOU can only change cell colors. Changing the default color does not work.
by jvierra
Wed Sep 28, 2016 8:58 pm
Forum: Windows PowerShell
Topic: DataGridView Row Color
Replies: 6
Views: 24

Re: DataGridView Row Color

I have no idea what that is supposed to mean. I thought you were asking about adding colors to a row.
by jvierra
Wed Sep 28, 2016 7:21 pm
Forum: Windows PowerShell
Topic: DataGridView Row Color
Replies: 6
Views: 24

Re: DataGridView Row Color

The easiest way to set the cells color after loading the grid. Just enumerate the cells of the row and set color based on key cell.

Here is a simple example: https://powershell.org/forums/topic/cha ... agridview/
by jvierra
Wed Sep 28, 2016 6:37 pm
Forum: PowerShell GUIs
Topic: Validating event not called
Replies: 4
Views: 17

Re: Validating event not called

Well - I cannot guess at what you are doing. Trying rebuilding the form from scratch. Perhaps the file is corrupt.
by jvierra
Wed Sep 28, 2016 4:53 pm
Forum: PowerShell GUIs
Topic: Validating event not called
Replies: 4
Views: 17

Re: Validating event not called

validation is disabled.
The event is not tied to the control.
by jvierra
Wed Sep 28, 2016 10:25 am
Forum: PowerShell GUIs
Topic: Length of Textbox
Replies: 3
Views: 23

Re: Length of Textbox

Make the textbox larger. It will only display as many characters as it has width for. The characters are all there except if you are using Format-Table to get the text. Don't use any Format commands when retrieving text. The Format commands will truncate column widths. The "ellipses" in yo...
by jvierra
Wed Sep 28, 2016 9:02 am
Forum: Windows PowerShell
Topic: Uncheck all
Replies: 6
Views: 23

Re: Uncheck all

Do you really need to do this recursively?
by jvierra
Wed Sep 28, 2016 8:59 am
Forum: Windows PowerShell
Topic: Uncheck all
Replies: 6
Views: 23

Re: Uncheck all

For ungrouped controls on a form:

Code: Select all

$form1.Controls |
ForEach-Object{
if($_ -is [System.Windows.Forms.CheckBox]){
$_.Checked = $false
}
}
by jvierra
Wed Sep 28, 2016 8:54 am
Forum: Windows PowerShell
Topic: Uncheck all
Replies: 6
Views: 23

Re: Uncheck all

In PowerShell - same code:

$groupbox1.Controls | %{ $_.Checked = $false}

Go to advanced search