タイトル : Re: タスクバーに納めた場合のイベント 投稿日 : 2009/05/06(Wed) 08:45 投稿者 : 花ちゃん
> タスクトレイに格納すると、timerイベントなどは効かなくなるのでしょうか? > タスクトレイに格納(サンプルコード) > Me.Visible = False > > Dim ico As New System.Drawing.Icon("Sample1.ico") > NotifyIcon1.Icon = ico > NotifyIcon1.Visible = True 事象を再現できるコードを作成して投稿して見て下さい。 下記では、Timer イベントは、発生しておりますが。 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Me.Visible = False Dim ico As New System.Drawing.Icon("Sample1.ico") NotifyIcon1.Icon = ico NotifyIcon1.Visible = True Timer1.Enabled = True Timer1.Interval = 5000 '5秒後にFormを表示 Timer1.Start() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Timer1.Tick Me.Visible = True End Sub |