ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> DevelopMentor-dotNET
DevelopMentor-dotNET
Re: [DOTNET] Question: How to show a menu on a NotifyIcon when th e user clicks (left, once)?
by Saurabh Nandu other posts by this author
Nov 23 2001 6:01PM messages near this date
Re: [DOTNET] Question: How to show a menu on a NotifyIcon when th e user clicks (left, once)? | Re: [DOTNET] (SOLUTION) Question: How to show a menu on a NotifyIcon when the user clicks (left, once)?
I checked on the attributes ... I find nothing special... (its not
sealed)
Yeha the class does have a protected constructor so *no one* can create
an instance of it ! But the C# Reference documentation mention's no way
you could programmatically restrict a class being just invoked within a
particular assembly .. It could be possible that this assembly was
written in some other .NET language that allows such class hiding ...

Regards,
Saurabh Nandu
Web Master: http://www.MasterCSharp.com
Master C#, the easy way...


-----Original Message-----
From: dotnet discussion [mailto:DOTNET@[...].COM] On Behalf Of
Thomas Tomiczek
Sent: Friday, November 23, 2001 11:24 PM
To: DOTNET@[...].COM
Subject: Re: [DOTNET] Question: How to show a menu on a NotifyIcon when
th e user clicks (left, once)?

OK, some stuff inline and maybe a hint for you :-) Your work on the
internal methos is appreciated. Ok, here we go, inline with ***

Thomas Tomiczek
THONA Consulting Ltd.
Microsoft MVP (.NET / C#)

-----Original Message-----
From: Saurabh Nandu [mailto:saurabhn@[...].COM]
Sent: Freitag, 23. November 2001 18:48
To: DOTNET@[...].COM
Subject: Re: [DOTNET] Question: How to show a menu on a NotifyIcon when
th e user clicks (left, once)?

No problems ...
Anyways I was going through NotifyIcon class in ILDASM .. on viewing the
IL of the private method ShowContextMenu, it revels a great deal on how
MS has implemented this class...

*** I will go through it - sounds interesting.

But the thing that baffles me is that the IL shows instantiation of
*undocumented* class System.Windows.Forms.NativeMethods ... This class
has a private constructor... But I can't use that class or its static
fields .... It throws an exception that the class is inaccessible due to
its protection level... But if that's the case then how could the MS
guys access it ....??

*** To possibilities. What about an internal flag? Just an idea - can it
be that this is internal private or something, so calls from the same
assembly work? Also, what about protection attributes that explicitly
block you from calling? Hm, no - too much hassle.

Any ideas on this one??

*** Nothing besides the stuff above.

PS: I was not joking, I indeed use my mouse with my left-hand !!

*** Well, this explains.

*** Regards

*** THomas

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
Thread:
Thomas Tomiczek
Saurabh Nandu

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved