Adding Custom Command In A Shortcut Menu (right Button)
May 11, 2009Is it possible to add custom command in a shortcut (.lnk) menu (right button) through .net? How can i add the command and executed that command.?
View 4 RepliesIs it possible to add custom command in a shortcut (.lnk) menu (right button) through .net? How can i add the command and executed that command.?
View 4 Repliesok, i've been able to figure out that i can add a button to a menubar (like the file edit view, ones at the top of most programs) and so far i have figured out:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
form1.MenuStrip1.Items.Add(TextBox1.Text)
[code]......
Is it possible to create a custom start menu shortcut link?
The only possibilities I see in the setup project are shortcuts to folders or primary output.
Update:
What I ended up doing is creating a custom action on commit that dynamically creates the link using Windows Scripting Host. Then on uninstall, removing the link.
In my program I am trying to make a button that would add a shortcut to activate a running application by a process ID. In a form I have 2 text-boxes 1 for the name of the shortcut that would be shown in the tool-strip-menu-item. Then the other for the process name. Then when the user presses a button I would like the text of the text-box for the name to be added to a tool-strip-menu-item, then the other text-box used for the Process ID to be added to the fallowing code: (the tool-strip-menu-item is in another form)
Dim processID As Integer
processID = Shell("Process ID
", AppWinStyle.NormalFocus)
How would I add a new ToolStripItem with code, which will have a Click event which uses the text from the ToolStripItem to read a file? So the ToolStripItem most somehow send it's text to the Click event.
View 2 RepliesI have created a custom control that has a few labels and a button on it. In my main program i dyanmically add this control to a stackpanel. When i add the control i add a few events for it by doing th e following:
Dim newqueue As New UserControl1
AddHandler newqueue.MouseDoubleClick, AddressOf PrintMessage
How would i go about adding an event for the button.click for the button in the custom control?
I was just wondering if there was a possible way to add a custom button into the title bar using VB.NET. I've seen many such questions on Stack Overflow but failed to get a sure-shot and a working answer.
View 3 RepliesIn my app, I have an option to install another app (that I don't have any control over).
Once this second app is installed, I want to be able to remove the Start Menu items that it creates - how easy would this be to do?
I know the names of the menu items.
[code]....
View 3 Repliesi want to add a menu item to the user's Send To menu. In Visual Studio Installer i have added a shortcut to my application in the "User's Send To Folder". When i install my application a shortcut is being created in c:UsersalexAppDataRoamingMicrosoftWindowsSendTo as it should be in Windows Vista.. Despite this the menu item is not showing! I cannot see the Send To Menu item!
View 2 RepliesI'm running into this one very specific issue:
- I have a VB.Net 2005 Project for which I've created a Setup Project.
- In my Setup Project, I've added a shortcut on my Start Menu, that points to my Application.
- After deploying it, all works great.
- One of my users chooses to *copy* the shortcut from the Start Menu into their Desktop.
- I then create an upgrade for this Application. Again, the deployment works great. They can start my application from the Start menu.
- They double-click on their icon in the Desktop and they get a popup: Title of the message box: Problem with Shortcut Description of the message box: (X) The parameter is incorrect.
The shortcut's Target, is blank ( which I believe is the problem ).I'd love to be able to specify an actual [TARGETDIR]myApp.exe type of string as the shortcut's target in my Setup Project, but I can't do this.Instead I have to point it via UI, to my Target Application ( which I'm assuming is resolved at install-time ). The problem with this is that it appears that the shortcuts get re-evaluated every time you re-install / upgrade the application. Since my previous version is technically not installed anymore, my shortcut gets invalidaded, even though the target path is still the same and I haven't changed my executable's file name.
of field with working in the registry and shell but I figured I would ask this question. I want to learn how to make a shell context menu associated with my program for a given filetype or any filetype
View 6 Repliesworking in the registry and shell but I figured I would ask this question. I want to learn how to make a shell context menu associated with my program for a given filetype or any filetype. But I want to know how I can add it and remove it.
View 3 RepliesWhere do I put the shortcut icon for my mobile application in the Installer project for a Windows Mobile project so that when the cab is installed the icon will show on the Programs Menu?
View 1 RepliesI was wondering if there is any way to make a program recognize a keyboard shortcut while its not the active program
View 1 RepliesInstead of repeatedly saying "show numbers" to get the numbering of clickable items to appear with Speech Recognition in Windows 7, I want to assign a keyboard shortcut to trigger this command. How can this be done?
I have been trying to use EmulateRecognition in the Speech API, but the most I've been able to get it to do is display the words "show numbers" in the Speech Recognition window; it hasn't actually performed the show numbers command using this method.
I add a mainmenu I have to edit InitializeComponent().I tried to take a shortcut and copy an existing menu and then rename it. Big mistake. If you have done it, do not do it again.Anyone have an idea of how to get me back on track? I have done a rebuild, closed VB etc.
'frmMain
Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font[code]....
I am having troubler with hide/show commands, First I did this
Private
Sub
FavoritesToolStripMenuItem1_Click(ByVal
sender As
System.Object,
[Code] .....
Now I can't have my shortcut because there is two things that use the short cut so can I do a command that hides the shortcut and enables it when I click on the favorites?
Is there any way to create a custom shortcut (one that is not there in the Windows.Forms.Shortcut enumeration) and attach it to a MenuItem. Example I want Ctrl+'+' to be a shortcut for a menuitem. Its not there in the enumeration.
View 6 RepliesHow do I add an unistall shortcut. I am using deployment and setup>setup project to deploy.
View 3 Replieswhen I publish my app and run the setiup it places the shortcut under a folder in the start menu called Microsoft
View 1 RepliesI've just created a game program in VBE2008.Who do I add the shortcut Icon to the project file?When I build my program into a .exe file I want it to include a small custom icon that will automatically display when you hotlink from the desktop to the .exe file.
View 2 RepliesI cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
View 5 Repliesi really dont get it. i want to put keyboard shortcuts on the button i have other than clicking this buttons. but the problem is i dont know how. i tried putting an ampersand (&) sign before the text of the buttons and it work, but the ampersand sign also displays. heres the original code:
Button1.Text = Mid(ChoosenWord, PickedSeq(0), 1)
Button2.Text = Mid(ChoosenWord, PickedSeq(1), 1)
Button3.Text = Mid(ChoosenWord, PickedSeq(2), 1)
[code]....
I recently downloaded VB 2010 Express so i am quite new to the language, but i have worked with dark basic, which seems to b very similar.Anyway, my problem is that i cannot seem to correctly set out my array of a custom type/class. i am trying to create two arrays, one of available entities and another of selected entities of which the user selects the entities to be dealt with in irrelevant ways. i have creates a button (called test) which adds some entities to the available list and all the entities come back the same value but they shouldnt be as you'll c in the code. i have run the step into command a found that "available.item(#).Name = " will change all of the entity's names.As of current i am working with lists as the array kept asking for a 'new' statement but i couldnt figure out where to put it.[code]
View 7 Replieshow to make a button in VB10 that opens a program like Skype, or something when you press it? :)
View 3 RepliesI am creating a VBA application using Excel 2007 and would like to make virtually all of the standard Office and Excel menus invisible to the user and present to the user only my custom menu controls. I have been successful in doing this for all objects on the Ribbon as well as those on the Microsoft Office Button Menu, with the exception of the "recently opened files list" box, that also has the "Excel Options" and "Exit Excel" buttons on it. Can anyone tell me the name of the object for this control so that I can make it invisible?
Here is the relevant snipit of XML code that is in my CustomUI.xml file:
[Code]...
the menu in the button is opened with click in the small down arrow, but NOT if click in the button image.
View 6 Repliesi am writing an application in vb5 and i need to make an invisible shortcut button for the esc function...
how might i code this????
I set an ampersand sign in from of a Radio button text. However the I could not select the radio buttons unless I used the mouse. In other words the shortcut setting is not working for the Radio button
View 3 Replies