473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Ownerdrawn menus not working with Notify Icon

Hi there.
I have created a Windows Control Library project within my solution (using
VB.Net 2003) and created a control which inherits the MenuItem class but
takes cares of the drawing of the menu.
So far so good. It takes care of all the drawing of the menuitems if they
are part of the form's mainmenu or if they are part of a context menu of an
item of the form (Listview, etc).
However, if the context menu is assigned to the Notify Icon control, the
menus are NOT drawn. The menus become just a few pixels wide with no text or
anything on them.
Why does this happen? Am I doing something wrong or is it a bug? Thanks!

André Nogueira
Nov 20 '05 #1
4 1256
Hi,

Sorry. It is a known bug.

Ken
------------

"Andre Nogueira" <an**@netcabo.pt.NOSPAM> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl:
Hi there.
I have created a Windows Control Library project within my solution (using

VB.Net 2003) and created a control which inherits the MenuItem class but

takes cares of the drawing of the menu.
So far so good. It takes care of all the drawing of the menuitems if they

are part of the form's mainmenu or if they are part of a context menu of
an
item of the form (Listview, etc).
However, if the context menu is assigned to the Notify Icon control, the

menus are NOT drawn. The menus become just a few pixels wide with no text
or
anything on them.
Why does this happen? Am I doing something wrong or is it a bug? Thanks!

Andri Nogueira


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004
Nov 20 '05 #2
Thank you for your quick reply!
And is there any known workaround?

André Nogueira

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
Hi,

Sorry. It is a known bug.

Ken
------------

"Andre Nogueira" <an**@netcabo.pt.NOSPAM> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl:
Hi there.
I have created a Windows Control Library project within my solution (using
VB.Net 2003) and created a control which inherits the MenuItem class but

takes cares of the drawing of the menu.
So far so good. It takes care of all the drawing of the menuitems if they
are part of the form's mainmenu or if they are part of a context menu of
an
item of the form (Listview, etc).
However, if the context menu is assigned to the Notify Icon control, the

menus are NOT drawn. The menus become just a few pixels wide with no text or
anything on them.
Why does this happen? Am I doing something wrong or is it a bug? Thanks!

Andri Nogueira


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004

Nov 20 '05 #3
Use this NotifyIcon Control instead.
http://windowsforms.net/downloads/gd...fyIconXP02.zip

--
Mick Doherty
http://dotnetrix.co.uk

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004
Nov 20 '05 #4
Thanks ALOT!
I was already doing some research on the net to develop my own Notify Icon
and had already started coding.
That really saved me loads of time and works like a charm!
Thanks again

André Nogueira

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:u7*************@TK2MSFTNGP10.phx.gbl...
Use this NotifyIcon Control instead.
http://windowsforms.net/downloads/gd...fyIconXP02.zip

--
Mick Doherty
http://dotnetrix.co.uk

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jm | last post by:
Hi, I have a C# program that changes the notifyIcon during the program. What I have noticed is that sometimes when the program is over the old icon will still be in the system tray. But when i...
4
by: Beenish Sahar Khan | last post by:
I want to start my application so that its notify icon is added to the system tray, i don't want to show any starting form. I want user to interact through the notify icon...just like MSN. Is there...
0
by: Andrew Baker | last post by:
Have a look at the code below. It's a really simple example where I have added two controls to a form, a textbox and a combo box. Both add owner drawn context menus to the controls, but the...
3
by: André Nogueira | last post by:
Hi there! I have successfully create my own ownerdrawn menus. However, I decided to add some code for the menus to detect if their parent is a MainMenu object and, if it is, as it is the menuitem...
1
by: Rob | last post by:
I have an interesting problem with my Notify Icon. I cannot get it to display when I start a web service. I have no problems when I test the software on a Windows program. But the Icon will not...
0
by: Mike Eaton | last post by:
Hi there, I have an app whose structure is as follows: a module calls a custom application context containing a notify icon and associated context menu, which in turn acts upon an instance of...
3
by: Cylix | last post by:
I am going to make an application in monitor and do something on time. A part of it is an Notify icon(System Tray Icon), Which project type can I be used for Just showing the notify icon without...
2
by: mr t | last post by:
Hi guys, I have a notify Icon, but when I call showBallonTip, the balloon does not show. any reason why? here is my call: Me.NotMemberServ.ShowBalloonTip(5000, "New Member IDs", iCountNew & "...
1
by: namrataa | last post by:
i have a notify icon for our media player developed in wpf. included files are notify.cs,notify.resx,notify.designer.cs. i have also added a class file called app.cs . now the problem is how...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.