G
Guest
Hi,
I have created a Service with vb.NET 2005 and I want to show a form. How can
I do this? Can I do it like this? Or should'nt I use a form in a service at
all?
Private oMain As Main
Protected Overrides Sub OnStart(ByVal args() As String)
' Code zum Starten des Dienstes hier einfügen. Diese Methode sollte
Vorgänge
' ausführen, damit der Dienst gestartet werden kann.
Try
oMain = New Main
oMain.Show()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
If I do so then the form is shown but it say "No response".
Thanks in advance
Kind regards
Stefan
I have created a Service with vb.NET 2005 and I want to show a form. How can
I do this? Can I do it like this? Or should'nt I use a form in a service at
all?
Private oMain As Main
Protected Overrides Sub OnStart(ByVal args() As String)
' Code zum Starten des Dienstes hier einfügen. Diese Methode sollte
Vorgänge
' ausführen, damit der Dienst gestartet werden kann.
Try
oMain = New Main
oMain.Show()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
If I do so then the form is shown but it say "No response".
Thanks in advance
Kind regards
Stefan