浏览代码

Update 'MCW-NAS-Search.ps1'

Ethan 1年前
父节点
当前提交
f7f4195409
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      MCW-NAS-Search.ps1

+ 4
- 4
MCW-NAS-Search.ps1 查看文件

3
 # Create form
3
 # Create form
4
 $form = New-Object System.Windows.Forms.Form
4
 $form = New-Object System.Windows.Forms.Form
5
 $form.Text = 'File Search'
5
 $form.Text = 'File Search'
6
-$form.Size = New-Object System.Drawing.Size(300,200)
6
+$form.Size = New-Object System.Drawing.Size(500,300)  # Adjust form size here
7
 $form.StartPosition = 'CenterScreen'
7
 $form.StartPosition = 'CenterScreen'
8
 
8
 
9
 # Create label
9
 # Create label
10
 $label = New-Object System.Windows.Forms.Label
10
 $label = New-Object System.Windows.Forms.Label
11
 $label.Location = New-Object System.Drawing.Point(10,20)
11
 $label.Location = New-Object System.Drawing.Point(10,20)
12
-$label.Size = New-Object System.Drawing.Size(280,20)
12
+$label.Size = New-Object System.Drawing.Size(480,20)  # Adjust label size here
13
 $label.Text = 'Enter your search query:'
13
 $label.Text = 'Enter your search query:'
14
 $form.Controls.Add($label)
14
 $form.Controls.Add($label)
15
 
15
 
16
 # Create textbox
16
 # Create textbox
17
 $textBox = New-Object System.Windows.Forms.TextBox
17
 $textBox = New-Object System.Windows.Forms.TextBox
18
 $textBox.Location = New-Object System.Drawing.Point(10,40)
18
 $textBox.Location = New-Object System.Drawing.Point(10,40)
19
-$textBox.Size = New-Object System.Drawing.Size(260,20)
19
+$textBox.Size = New-Object System.Drawing.Size(460,20)  # Adjust textbox size here
20
 $form.Controls.Add($textBox)
20
 $form.Controls.Add($textBox)
21
 
21
 
22
 # Create button
22
 # Create button
49
 # Create output box
49
 # Create output box
50
 $outputBox = New-Object System.Windows.Forms.TextBox
50
 $outputBox = New-Object System.Windows.Forms.TextBox
51
 $outputBox.Location = New-Object System.Drawing.Point(10,100)
51
 $outputBox.Location = New-Object System.Drawing.Point(10,100)
52
-$outputBox.Size = New-Object System.Drawing.Size(260,80)
52
+$outputBox.Size = New-Object System.Drawing.Size(460,160)  # Adjust output box size here
53
 $outputBox.Multiline = $true
53
 $outputBox.Multiline = $true
54
 $outputBox.ScrollBars = 'Vertical'
54
 $outputBox.ScrollBars = 'Vertical'
55
 $form.Controls.Add($outputBox)
55
 $form.Controls.Add($outputBox)

Powered by TurnKey Linux.