powershell:form_sqlite_db_manageer
差分
このページの2つのバージョン間の差分を表示します。
powershell:form_sqlite_db_manageer [2025/10/14 00:53] – 作成 mikoto | powershell:form_sqlite_db_manageer [2025/10/16 07:34] (現在) – mikoto | ||
---|---|---|---|
行 172: | 行 172: | ||
[void]$form.ShowDialog() | [void]$form.ShowDialog() | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 値ビューワー領域 ===== | ||
+ | <code powershell> | ||
+ | # セルを選択したときにその値を表示する | ||
+ | $dataGridArea.Add_CellClick({ | ||
+ | param($s, $e) | ||
+ | $rowIndex = $e.RowIndex | ||
+ | $colIndex = $e.ColumnIndex | ||
+ | |||
+ | if ($rowIndex -ge 0 -and $colIndex -ge 0) { | ||
+ | $cellValue = $s.Rows[$rowIndex].Cells[$colIndex].Value | ||
+ | # | ||
+ | $valueViewer.Text = [string]$cellValue | ||
+ | } | ||
+ | }) | ||
+ | |||
+ | # セルのデータを表示する領域 | ||
+ | $valueViewer = New-Object System.Windows.Forms.TextBox | ||
+ | $valueViewer.Multiline = $true | ||
+ | $valueViewer.ScrollBars = " | ||
+ | $valueViewer.Location = New-Object System.Drawing.Point(900, | ||
+ | $valueViewer.Size = New-Object System.Drawing.Size(200, | ||
+ | $valueViewer.ReadOnly = $true | ||
+ | $valueViewer.Anchor = "Top, Bottom, Right" | ||
</ | </ |
powershell/form_sqlite_db_manageer.txt · 最終更新: 2025/10/16 07:34 by mikoto