Browse Source

fix SD-1818 - VB NotifyIcon Application template not working properly

pull/20/head 4.1-Beta
Siegfried Pammer 14 years ago
parent
commit
b0b8c13c20
  1. 18
      data/templates/project/VB/NotifyIcon.xpt

18
data/templates/project/VB/NotifyIcon.xpt

@ -27,17 +27,25 @@ @@ -27,17 +27,25 @@
<Reference Include="System.Xml" />
</ProjectItems>
<ProjectItems>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Drawing" />
<Import Include="System.Diagnostics" />
<Import Include="System.Windows.Forms" />
</ProjectItems>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<MyType>WindowsFormsWithCustomSubMain</MyType>
</PropertyGroup>
<Files>
<File name="NotificationIcon.vb"><![CDATA[${StandardHeader.VBNET}
Imports System.Diagnostics
Imports System.Drawing
Imports System.Threading
Imports System.Windows.Forms
Public NotInheritable Class NotificationIcon
Private notifyIcon As NotifyIcon
@ -76,8 +84,8 @@ Public NotInheritable Class NotificationIcon @@ -76,8 +84,8 @@ Public NotInheritable Class NotificationIcon
notificationIcon.notifyIcon.Visible = True
Application.Run()
notificationIcon.notifyIcon.Dispose()
' The application is already running
' TODO: Display message box or change focus to existing application instance
' The application is already running
' TODO: Display message box or change focus to existing application instance
Else
End If
End Using

Loading…
Cancel
Save