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 4 1283
Hi,
Sorry. It is a known bug.
Ken
------------
"Andre Nogueira" <an**@netcabo.p t.NOSPAM> wrote in message
news:Oz******** ******@tk2msftn gp13.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
Thank you for your quick reply!
And is there any known workaround?
André Nogueira
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:ea******** ******@TK2MSFTN GP10.phx.gbl... Hi,
Sorry. It is a known bug.
Ken ------------
"Andre Nogueira" <an**@netcabo.p t.NOSPAM> wrote in message news:Oz******** ******@tk2msftn gp13.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
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.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in
message news:u7******** *****@TK2MSFTNG P10.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 move over the icons
in the taskbar the taskbar will immediately update itself and clear
the old icon away.
I was just wondering if this is normal or if I am supposed to "force"
an update of the taskbar system tray icons somehow?
|
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 any way to do this?
regards,
beenish
|
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 combobox will NOT
draw custom drawn context menu item. I have tried EVERYTHING (deriving
from MenuItem and even tried calling TrackPopupMenuEx directly), but
it just won't work!
I am currently reflecting over the combobox source code (oh joy!), but...
|
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 beeing displayed
in the form's menu bar, it draws it differently.
So far so good.
But there are two thing I can't get around.
1 - How can I draw a custom menu when the mouse is over the menu item but
the user hasn't clicked it, just like in...
|
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 display for the service.
My service utilizes an Asynchronous Callback to load a queue. There is
other background processing based on time (different thread). I have heard
that the Notify Icon may have issues when the thread that instanctiates...
| |
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 another class, I'll call Class1 (i.e.
accesses its startup, shutdown, print reports methods).
Basically, Class1 manages communication between two other classes: one is a
class that listens for a socket connection from another application and the...
|
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 any form?
What I mean is something like When you minimize the MSN Messager as a
tray icon.
I have tried a service project and application project, all these seems
cannot meet the goal.
|
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 & "
Member IDs Downloaded.", ToolTipIcon.Info)
thanks in advance.
|
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 do u attach an event handler to the context menu.i
want to add event handlers to hide and show the media player.
The notify icon appears in the tray when i run the application but does not disappear wen it is stopped.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |