TrayIcon usage |
Post Reply |
Author | |
ikaney
Newbie Joined: 15 June 2007 Location: United Kingdom Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 29 February 2008 at 6:18am |
Apologies for such a simplistic post, I've used several of the other Codejock controls with no issue however I'm having major issues with the TrayIcon control in VB.Net. I can't seem to find an example program in the usual location to help me. I've tried all sorts to get my program to minimize to the system tray with a specified icon but it just won't play ball. I'm setting the .Icon property with System.Drawing.Icon and populating it from an embedded resource but when I call the .MinimizeToTray function the application shrinks as it should but no icon appears in the system tray.Any ideas? Or should I not even be using this in VB.Net? Thanks in advance.
|
|
Bernie
Senior Member Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109 |
Post Options
Thanks(0)
|
In my computer, these codes can work. Private Sub Form_Load() |
|
Bernie Ho, Planning Manager + IELTS specialist + part-time programmer
Taiwan, R.O.C |
|
ikaney
Newbie Joined: 15 June 2007 Location: United Kingdom Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Yeah, I think that's VB6 isn't it? I'm attempting to use them in VB.Net and it just isn't playing ball at all.
I've reverted to using NotifyIcon for the time being unless somebody can help me. Thanks for your reply :) |
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
I do that in the form resize event so when the user clic on the minimize button of the form the form is hidden to the system tray but i put the code from the button in the sample to the double click event of the trayicon control and the application crash when i double clic on the trayicon.
Any code to do that without the minimize button on the form I want to use the minimze button of the captonbar and double click on the tray icon to restore form back to previous visibility and position.
Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |