|
-
Nov 14th, 2005, 03:28 AM
#1
Thread Starter
Lively Member
Send to SysTray in Console App?
Ive heard its possible but I dont think it is, does anyone know it Im wasting my time looking for how to get my console app to the systray??
-
Nov 14th, 2005, 03:40 AM
#2
Re: Send to SysTray in Console App?
Sure it is, this is OOP 
VB Code:
Sub Main()
Dim f As New System.Windows.Forms.NotifyIcon
f.Icon = New System.Drawing.Icon("Z:\jobwiz.ico")
f.Visible = True
Console.Read()
End Sub
Of course, all context menus, handlers for click events, etc will need to be made manually.
Oh, and you'll need a reference to System.Windows.Forms, and System.Drawing. Heh, so uh.. what's the point of it being a console app when all's said and done 
Bill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|