PC Review


Reply
Thread Tools Rate Thread

Context Menu For Tray Icon

 
 
Simon Jefferies
Guest
Posts: n/a
 
      30th Mar 2004
Hello,

I have attached a context menu to a notify icon. The problem is that when I
run the program I get blank text for the items on the context menu, they
work fine, but no text is shown and the menu items themselves have a width
large enough for an icon.

Any ideas?
Simon Jefferies
Tools Programmer
Headfirst Productions
(E-Mail Removed)


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      30th Mar 2004
* "Simon Jefferies" <(E-Mail Removed)> scripsit:
> I have attached a context menu to a notify icon. The problem is that when I
> run the program I get blank text for the items on the context menu, they
> work fine, but no text is shown and the menu items themselves have a width
> large enough for an icon.


Does this sample work?

<URL:http://dotnet.mvps.org/dotnet/samples/windowsandforms/downloads/SimpleNotifyIcon.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Simon Jefferies
Guest
Posts: n/a
 
      30th Mar 2004
Yes, that sample worked!

The only difference i can see is that the I've created the menu and trayicon
using the designer rather coding it.

One other difference, I've just noticed is that the "Owner Draw" property
keeps getting set to TRUE. This is probably the cause? I have tried to set
if back to FALSE, but it keeps changing. I've recreated the menu items and
that hasn't made any differences.

Any ideas?

--
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
private.php?do=newpm&u=


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:c4boa0$2hlhbi$(E-Mail Removed)...
>* "Simon Jefferies" <(E-Mail Removed)> scripsit:
>> I have attached a context menu to a notify icon. The problem is that when
>> I
>> run the program I get blank text for the items on the context menu, they
>> work fine, but no text is shown and the menu items themselves have a
>> width
>> large enough for an icon.

>
> Does this sample work?
>
> <URL:http://dotnet.mvps.org/dotnet/samples/windowsandforms/downloads/SimpleNotifyIcon.zip>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      30th Mar 2004
* "Simon Jefferies" <(E-Mail Removed)> scripsit:
> One other difference, I've just noticed is that the "Owner Draw" property
> keeps getting set to TRUE. This is probably the cause? I have tried to set
> if back to FALSE, but it keeps changing. I've recreated the menu items and
> that hasn't made any differences.


That's the cause, but I feel sorry, I don't know any reason why this
property is set to 'True' automatically.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable a context menu in sys tray?? Amil Hanish Microsoft Dot NET Framework Forms 1 30th Jun 2006 04:57 AM
[BUG] Real time protection is disabled in context menu of system tray Seagal Spyware Discussion 3 2nd Apr 2005 07:28 AM
Tray Icon Context Menu Function Problem =?Utf-8?B?QnJ1Y2U=?= Microsoft VB .NET 0 8th Mar 2004 03:21 PM
RE: Adding a custom Context Menu to a Component Tray =?Utf-8?B?SXVsaWFuIElvbmVzY3U=?= Microsoft Dot NET Framework Forms 2 14th Feb 2004 06:51 AM
Owner drawn tray context menu James Microsoft C# .NET 0 10th Jul 2003 12:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 PM.