ユーザ用ツール

サイト用ツール


powershell:form_sqlite_db_manageer

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

powershell:form_sqlite_db_manageer [2025/10/14 00:53] – 作成 mikotopowershell:form_sqlite_db_manageer [2025/10/16 07:34] (現在) mikoto
行 172: 行 172:
 [void]$form.ShowDialog() [void]$form.ShowDialog()
  
 +</code>
 +
 +
 +===== 値ビューワー領域 =====
 +<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
 +        #[System.Windows.Forms.MessageBox]::Show("$cellValue", "セル情報")
 +        $valueViewer.Text = [string]$cellValue
 +    }
 +})
 +
 +# セルのデータを表示する領域
 +$valueViewer = New-Object System.Windows.Forms.TextBox
 +$valueViewer.Multiline = $true
 +$valueViewer.ScrollBars = "Vertical"
 +$valueViewer.Location = New-Object System.Drawing.Point(900,20)
 +$valueViewer.Size = New-Object System.Drawing.Size(200,700)
 +$valueViewer.ReadOnly = $true
 +$valueViewer.Anchor = "Top, Bottom, Right"
 </code> </code>
powershell/form_sqlite_db_manageer.txt · 最終更新: 2025/10/16 07:34 by mikoto