teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

文法の修正

2017/10/21 01:05

投稿

SUSU0703
SUSU0703

スコア17

title CHANGED
File without changes
body CHANGED
@@ -44,7 +44,6 @@
44
44
  }
45
45
  }
46
46
 
47
- #$Button.Add_Click($Start)
48
47
 
49
48
  $Form.Controls.AddRange(@($Bar,$Button))
50
49
 

1

文法の修正

2017/10/21 01:05

投稿

SUSU0703
SUSU0703

スコア17

title CHANGED
File without changes
body CHANGED
@@ -10,13 +10,13 @@
10
10
  こちらのバーの消し方をぜひ教えて頂ければと思います。宜しくお願い致します。
11
11
 
12
12
  ----------------------------------------------------------------------------------------------
13
- # プログレスバー作成
13
+
14
14
  function goForm
15
15
  {
16
16
  [void][reflection.assembly]::LoadWithPartialName("System.Windows.Forms")
17
17
  [System.Windows.Forms.Application]::EnableVisualStyles();
18
18
 
19
- # プログレスバー フォーム
19
+
20
20
  Add-Type -AssemblyName System.Windows.Forms
21
21
 
22
22
  $Form = New-Object System.Windows.Forms.Form
@@ -29,7 +29,6 @@
29
29
  $Form.TopMost=$True
30
30
 
31
31
 
32
- # プログレスバー
33
32
  $Bar = New-Object System.Windows.Forms.ProgressBar
34
33
  $Bar.Location = "10,10"
35
34
  $Bar.Size = "115,30"
@@ -37,7 +36,6 @@
37
36
  $Bar.Minimum = "0"
38
37
  $Bar.Style = "Marquee"
39
38
 
40
- # 起動
41
39
  $Start = {
42
40
  For ( $i = 0 ; $i -lt 1000 ; $i++ )
43
41
  {