I must not be anchoring it correctly or setting a property correctly
Here's my form to make it simpler
Datagridview too many rows and auto size
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Datagridview too many rows and auto size
Yes, that does work
I want it to grow automatically based on the size of the data grid
I don't want to resize it myself
I want it to grow automatically based on the size of the data grid
I don't want to resize it myself
Re: Datagridview too many rows and auto size
jvierra wrote:Sorry but I don't understand. The form resizes the grid. The grid cannot resize the form.
So there is no way to read the size of the grid and update the size of the form?
Re: Datagridview too many rows and auto size
perfect!
I know I'm going offtopic here but for the life of me, I cannot figure out this to display only the extra items "chrome, visio, etc..."
$standardapps = Get-Content '\\someshare\projects\SiteSurveyApps-ExcludeList.txt'
$files = Invoke-Command -ComputerName $textbox.text -ScriptBlock {dir C:\Windows\ESD\logs -File} | Select Name | ? {$_ -ne $standardapps }
$files
I know I'm going offtopic here but for the life of me, I cannot figure out this to display only the extra items "chrome, visio, etc..."
$standardapps = Get-Content '\\someshare\projects\SiteSurveyApps-ExcludeList.txt'
$files = Invoke-Command -ComputerName $textbox.text -ScriptBlock {dir C:\Windows\ESD\logs -File} | Select Name | ? {$_ -ne $standardapps }
$files
Re: Datagridview too many rows and auto size
What can't you figure out?
This should be:
$files = Invoke-Command -ComputerName $textbox.text -ScriptBlock {dir C:\Windows\ESD\logs -File} | ? {$standardapps -notcontains $_.Name }
This should be:
$files = Invoke-Command -ComputerName $textbox.text -ScriptBlock {dir C:\Windows\ESD\logs -File} | ? {$standardapps -notcontains $_.Name }