473,749 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding right click context menu in VB.net

Hi all

I am a fresher and have been given a requirement in VB.net
I have to make an application in VB.net which will run as a system
tray icon and
will add one or two items in the default windows right clink context
menu.

on clicking on that menu item the application should write a signature
on the current cursor position

for example

if this application is running and user opens notepad / outlook new
mail
and right clicks anywhere the default windows context menu will appear
with an additional menu item "Add signature"

and on cliking on this menu item a pre defined signature will be
inserted to the current cursor position.

Does anyone knows how to go for it in VB.net

any help ?

thanks in advance

Preeti

Apr 14 '07 #1
1 14325
Preeti,

This is a similar thing what I asked before Christmas & no ones coding in
this newsgroups was good enough for a solution

The difference between your question & mine was that I wanted any
application to minimize to the system tray & add an extra system menu item
(2 actually as one was the seperator).

Basically you have to hook the keyboard... & get the handle of that context
menu. Once you have that you can use AppendMenu API passing BYPOSITION
constant adding the item. Then in WndProc handle the context menu message.
That's the theory anyway. Luckily for me these was an article in unmanaged
C++ that I converted to VB.NET to achieve the same result.

The best forum for answering this type of question was GotDotNet but they
closed it down recently. At least then you had help of Microsoft too

Sorry that I cannot be of any more help, but be assured you are wasting your
time asking a question this complicated in here unless HERFRIED can use his
Google Groups searching to come up with how to make an omlet (in Hebrew)
then he'll post you that useless link.

Good luck & if you find the code then NEVER post the code for people like
Herfried to copy, put on his website & call his own. You'll have many users
like that around if you do post it

One last thing you could try:

If you have Visual Studio (not Express) then you can ask Microsoft 2 unpaid
support questions, but you'll have to word your question into ONE full
question because if its split into two then they will be pedantic & only
answer one of them.

--
Newbie Coder
(It's just a name)

"Preeti" <Co******@gmail .comwrote in message
news:11******** **************@ b75g2000hsg.goo glegroups.com.. .
Hi all

I am a fresher and have been given a requirement in VB.net
I have to make an application in VB.net which will run as a system
tray icon and
will add one or two items in the default windows right clink context
menu.

on clicking on that menu item the application should write a signature
on the current cursor position

for example

if this application is running and user opens notepad / outlook new
mail
and right clicks anywhere the default windows context menu will appear
with an additional menu item "Add signature"

and on cliking on this menu item a pre defined signature will be
inserted to the current cursor position.

Does anyone knows how to go for it in VB.net

any help ?

thanks in advance

Preeti

Apr 14 '07 #2

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

Similar topics

2
2130
by: worzel | last post by:
Can't suss this out for the life of me, googling of no help either. Okay, new to win forms; I have a treeview with several root nodes, each having a single level of child nodes underneath. I also havea context (popup) menu which, what I want, is for it to pop up with certain options (menuItems) when a root treeNode is selected and different options when a child node is selected. It is all working well except for one problem - if I right...
4
14187
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with "Select All" and "Clear Selection" to a checked list box? Thanks, Aaron Queenan.
3
35271
by: VM | last post by:
How can I display my own popup menu when a user right-clicks inside the form? I know you use context menus but I don't how to implement them. Thanks.
0
1193
by: Dino M. Buljubasic | last post by:
I have several context menu added to my forms. The forms are displaying items in a list view. When I click on an item in a list view, a popup context menu shows allowing me to chese between editing or deleting the item from the list view. That works fine. However, I noticed that I can call the pop up context menu also by right clicking on a list view item, just as it works by left clicking on it. However it this case my application...
2
2024
by: Landen | last post by:
I am wanting to replicate a linux feature that I can't seem to find anywhere in windows as an addin or program. If anyone is familiar with linux, if you right click on a folder or file, you get the option to send to any other folder on your hard drive. For example, if I had a file on my desktop that I wanted to send to C:\Windows\system32\DirectX\Dinput, I wou;d have to open an explorer windows and navigate there I could just right click...
5
2124
by: wxnut | last post by:
In VB 2005 I have six seperately named picture boxes (arranged in a table layout control) in which I plot different X/Y data lines. I would like to be able to right-click on a specific picture box (say, plot #3) and select a different line color for that one plot. How can I figure out which of the six plots is the one in question when right-clicking on it? I can easily change the line color using the context menu control, but I don't...
1
1492
by: xlar54 | last post by:
Hey folks, could someone assist with this? In IE 7, you can click the Favorites menu, and the items that drop down can then be right-clicked on, providing a context menu, where you can copy, delete, etc. I would like similar functionality via C# in my own app, but I can not seem to figure out how to get a context menu to come from a menu item. Any help would be appreciated. Thanks
0
1709
by: Preeti | last post by:
Hi all I am a fresher and have been given a requirement in VB.net I have to make an application in VB.net which will run as a system tray icon and will add one or two items in the default windows right clink context menu. on clicking on that menu item the application should write a signature on the current cursor position
8
3725
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? ----------------------------------------------------------------------- The oncontextmenu intrinsic event is the only safe and reliable method. Of the other approaches often presented, most depend on an alert box interrupting the process and rarely work. Note that oncontextmenu is a non-standard event and is not...
0
8997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9568
Oralloy
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...
0
9389
jinu1996
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...
1
6801
isladogs
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...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
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
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.