Click here to Skip to main content
16,020,811 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends!!
I have loaded a win agent merlin in my app.. n its running good. now i need to add code for right click event of agent so that a pop up menu can open where i can put my help files ...


Anyone out there knows the code for that pop up menu in vb.net ?



Thanks in advance :)
Posted
Updated 30-Apr-10 22:57pm
v2

Do you mean context menus?
 
Share this answer
 
v2
yes i mean when i do right click on the agent than it will show a menu on right click just like when we do right click and create a new forlder :|
 
Share this answer
 
use the Context Menu...
Add a "Create Folder" item in the menu.

then try this codes..

' Specify the directory you want to manipulate.
Dim path As String = "c:\MyDir"
Try
' Determine whether the directory exists.
If Directory.Exists(path) Then
Console.WriteLine("That path exists already.")
Return
End If
' Try to create the directory.
Dim di As DirectoryInfo = Directory.CreateDirectory(path)
Console.WriteLine("The directory was created successfully at {0}.", Directory.GetCreationTime(path))
' Delete the directory.
di.Delete()
Console.WriteLine("The directory was deleted successfully.")
Catch e As Exception
Console.WriteLine("The process failed: {0}.", e.ToString())
End Try
 
Share this answer
 
Comments
Sandeep Mewara 29-Jul-10 11:31am    
Reason for my vote of 1
Question was about How to have 'Context Menu' and your reply was after you have context menu....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900