Search found 88 matches

by IanUoY
Tue Nov 21, 2017 6:56 am
Forum: PowerShell Studio
Topic: DataGridView bug?
Replies: 6
Views: 2526

Re: DataGridView bug?

Could it be because my form already has dgv's on it that are configured with columns, formatting etc?

Certainly now I have 3 dgv's and 4 Add/Edit columns.

Not sure what to suggest as I can't really say what I could have done to cause the issue.

Ian
by IanUoY
Tue Nov 21, 2017 3:55 am
Forum: PowerShell Studio
Topic: DataGridView bug?
Replies: 6
Views: 2526

Re: DataGridView bug?

In fact, checking it out further, it is not just when copying and pasting. Even when adding a new dgv component. In fact when I do that, I now have 3 edit and adds.

Ian
by IanUoY
Tue Nov 21, 2017 3:52 am
Forum: PowerShell Studio
Topic: DataGridView bug?
Replies: 6
Views: 2526

DataGridView bug?

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** PowerShell Studio 2017 v5.4.145 Windows 10 64-...
by IanUoY
Tue Nov 21, 2017 12:40 am
Forum: PowerShell
Topic: Remote Powershell Session oddity
Replies: 6
Views: 2310

Re: Remote Powershell Session oddity

I thought that was what I was doing. Creating a new session to my DC and importing the AD commands into the local session. Indeed, if I run the commands above in a powershell windows on a PC that doesn't have RSAT, the commands produce the desired effect and I can run the get-aduser cmdlet as expect...
by IanUoY
Mon Nov 20, 2017 9:06 am
Forum: PowerShell
Topic: Remote Powershell Session oddity
Replies: 6
Views: 2310

Re: Remote Powershell Session oddity

I thought it just imported the reference to the cmdlets, a bit like having RSAT. Certainly there are many blogs etc out there referencing the ability to Import the active directory module into the current session. Rather confusing. However, as I now have working, I will continue to use the Invoke Co...
by IanUoY
Mon Nov 20, 2017 8:12 am
Forum: PowerShell
Topic: Remote Powershell Session oddity
Replies: 6
Views: 2310

Remote Powershell Session oddity

I cannot get a remote session working properly. If I use the following code: $cred = Get-Credential $session = New-PSSession -ComputerName DC1 -Credential $cred Invoke-Command $session -Scriptblock { Import-Module ActiveDirectory } Import-PSSession -Session $session -Module ActiveDirectory #-Prefix ...
by IanUoY
Wed Jan 18, 2017 10:29 am
Forum: PowerShell GUIs
Topic: Adding buttons to DataGridView Column cells
Replies: 11
Views: 5108

Re: Adding buttons to DataGridView Column cells

You don't know me, my memory's worse than a fish :D

I've captured the CellContentClick successfully, will just figure out syntax to amend cell properties.

However, it's a good point to have a recap on stuff.

Regards

Ian
by IanUoY
Wed Jan 18, 2017 10:22 am
Forum: PowerShell GUIs
Topic: Adding buttons to DataGridView Column cells
Replies: 11
Views: 5108

Re: Adding buttons to DataGridView Column cells

Yep I get what you mean now. Unfortunately I get very little chance to do anything like this, and so almost have to start from scratch each time. Another option I'm looking at is to use the datagridviewimagecolumn and when a cell is that column is clicked change the background color or similar, then...
by IanUoY
Wed Jan 18, 2017 10:09 am
Forum: PowerShell GUIs
Topic: Adding buttons to DataGridView Column cells
Replies: 11
Views: 5108

Re: Adding buttons to DataGridView Column cells

Thanks for the quick response, what do you mean by Context Menu? Previously I've had a textbox somewhere which shows selected user for example, with option buttons, I just wanted to make it a bit neater. Presumably quite a bit of extra work to put separate icons outside the gridview as would have to...
by IanUoY
Wed Jan 18, 2017 9:40 am
Forum: PowerShell GUIs
Topic: Adding buttons to DataGridView Column cells
Replies: 11
Views: 5108

Re: Adding buttons to DataGridView Column cells

Fingers crossed.....third time I've posted this reply! I'd spotted the datagrdiviewbuttoncolumn, which I've added, and works ok for what it is. Ideally I would have liked to put a few buttons, but I can easily add a few datagridviewbuttoncolumns. What I would now like to do is add an icon to the but...