「VB.NET」フォームをタスクバーに表示しない

2021年10月1日

書式
Public Property ShowInTaskbar As Boolean
フォーム名.ShowInTaskbar = False

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frm2 As New Form2()
'フォームの境界線スタイルをダイアログボックスに定義
frm2.FormBorderStyle = FormBorderStyle.FixedDialog
'タスクバーを表示しない
frm2.ShowInTaskbar = False
frm2.Show()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim frm2 As New Form2() 'フォームの境界線スタイルをダイアログボックスに定義 frm2.FormBorderStyle = FormBorderStyle.FixedDialog 'タスクバーを表示しない frm2.ShowInTaskbar = False frm2.Show() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim frm2 As New Form2()

    'フォームの境界線スタイルをダイアログボックスに定義
    frm2.FormBorderStyle = FormBorderStyle.FixedDialog

    'タスクバーを表示しない
    frm2.ShowInTaskbar = False

    frm2.Show()
End Sub

 

VB.net

Posted by arkgame