Set Icons For The Menu?
Nov 26, 2011I have set Icons for the menu in my vb.net application but the icon size is too small. How to make it look bigger?
View 1 RepliesI have set Icons for the menu in my vb.net application but the icon size is too small. How to make it look bigger?
View 1 Repliesknow how to insert standard items to a menu strip. And I wonder how I can get access to those standard icons like the ones that are used for New, Open and Save? I know how to place an image on an existing menu command. For instance, how can I place the generic New icon on Export or Exit (without using copy & paste)?
View 1 RepliesWhen I open a form in my application and I maximize it, the Icon and the ControlBox are merged in the menu of the MDI parent where I open the form in. That is perfectly normal.
But when I close that form and open an other and also maximize it, I get two icons and two control boxes in my menu. When I close that form and open an other again and maximize it on it's turn, I get 3 icons and 3 control boxes in my menu. When I close the maximized form shouldn't the icon and the controlboxes dissapear?
How do I remove the area in a dropdown menu where the menu item icons are typically displayed?
I just need to remove the grey area in this particular dropdown, other dropdowns of menu items in the same menu bar need to retain this area because they do have icons.
Edit: This is WinForms.
TortoiseSVN and Dropbox both have Windows shell extensions that make file icons within Windows Explorer show a small icon beside the main one, showing the file's status - has it been synced, etc How can I make my application show icons beside files like that using the Windows API? Or is there some file attribute to do that?
View 1 RepliesI would like to make a image in the form representing the icon and a label below it to represent name but is there a easy way to do this.
View 2 RepliesAttached is the image from an Office application, how can we emulate such?
View 6 RepliesI'm trying to get my context menu appear in my tasktray, while the tray appears the menu doesnt when i right click. Here is all my code associated with my task tray:
[Code]...
How do I make a menu item on a menu strip link to another windows form (like a menu item that links to an about page already created in the project). I know that every coder knows how to do this, but i've read most of the instructions in the world for Visual Basic coding, but can't find ANYTHING I know coding fairly well, so I can modify it, but I can't create it my self.
View 4 RepliesI have combed these forums and the 'net and can't find an answer to my specific problem. My menu strip disappeared (after deleting a small secondary form within my project). I therefore created a new strip and while recreating the menu items realized that the original menu items are still present, showing in my properties list. I have checked my design file as well and the original menu strip is definitely gone but the original menu items are there. I don't have many items so I would have no problem just deleting the original ones but I can't see them to delete them! I have checked and they are all set to visible. I have also moved everything on my form to see if it is behind anything else.
View 4 RepliesThis is going to be hard to explain but oh well.I have a form with a menu. When I hit option one, it opens another form (form2) inside that same form (mdiparent). When I hit X on form2, then try to open it again from the original form with a menu thru the menu, It says it cant access a disposed object. Here is the code: Form1:
[Code]...
I have a list of all the fonts on a users system under a Font menu item. I would like to be able to use the scroll wheel to be able to scroll through these items like you can with a combo box.
[Code]...
Suppose I have ToolStripMenuItem mnuOrderOptions that contains the three drop down items. I want to copy all the items are their respective event handlers to Contextmenu on button click & then bound that context menu with the form.
Private Sub AToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AToolStripMenuItem.Click
MsgBox("A")
End Sub[code]....
how to clone the menu items and then bound it to form context menu.
I open a context menu by right clicking it.
It stays open when the cursor leaves it.
I click a main menu item.
The drop down opens at the top left of the screen.
Not under the main menu item I clicked.
I want to search the Internet but can't guess what key words to use.
I am wanting to create a menu based on items in my MS SQL database i have 3 tables
FormTbl
FormID - Int Eg (1)
FormName - nvarchar(50) Eg (Form1)
[CODE]...................
I can get the form names to be populated in to the menu and can open it my question is how do i set where the menu items will be placed. Eg File with FormHierarch 0 will be the very first one. Exit with FormHierarch 0.1 will be the very first one under File
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim menu As New MenuStrip()
Dim dst As DataTable = User.MenuItems(Me.ToolStripStatusLabel1.Text)
[CODE].....................................
I have a blank form and when the use right clicks on the form, they get a context menu with any number of names in the menu. This changes depending on the situation. I can get the context menu to add/remove the list of names but when I click on one of the choices and it goes to my routine (from addhandler) I can't find the property that tells me what they clicked on...
[Code]...
i want to show context menu on drop down menu item right click...As an example,Suppose we add bookmark in mozilla & when we right click on that item..context menu is showing
Code:
Private Sub MenuAddToFavorites_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MenuAddToFavorites.MouseDown
If e.Button = Windows.Forms.MouseButtons.Right Then
[Code]......
I have a MenuStrip with many submenus. I want to rearrange some of the menu items by making several of them submenus to another menu item.[code...]
View 2 RepliesI recently installed WSP Builder on a machine with Visual Studio 2008 already installed.Quite expectedly, the WSP Builder sub-menu appeared (and still appears) under the Visual Studio 2008 Tools menu.Having then installed Visual Studio 2010 Professional and installed WSP Builder a second time, I can not seem to find the WSP Builder sub-menu anywhere under any of the Visual Studio 2010 menus.Can anyone throw some light on this "missing menu" problem?
View 2 RepliesI know that right click menu is locked in the accdr mode. Is there any vba code to force this menu appear on right click?What i want in the menu is "cut, copy, paste". Now i only have paste functionality without any menu appearing
Private Sub Text22_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
f Button = 2 Then
CommandBars("Edit").Controls("Paste").Execute <---i want to replace this code with one
[code].....
I want to show a context menu on right click on a menu, but the menu disappears every time it is right clicked and I dont get the right coordinates for my menu.
Here is my code:
Code:Private Sub colMenus_MenuContextMenu(ByRef Sender As Object, ByRef e As clscolMenus.MenuContextEventArgs) Handles colMenus.MenuContextMenu Dim p As Drawing.Point Dim tm As ToolStripMenuItem
[Code].....
I have added a context menu at design time at VB.Net 2010. But I need to add a sub menu at run time to that context menu.
View 2 RepliesI have a menu strip. In the menu strip I have something for some saved urls in the database, I called it Bookmarks. So I'm trying to fetch the items from the database and have it load in to the menu items.. but it keeps adding items and I only want them added once.
[Code]
I have currently changed the color of background Menustrip using this code
[Code]...
How do i change the Hover color of menu items and dropdown menu items to orange including the background color which holds icons in menustrip dropdown.....
Two(2) Things. I don't have the "Clickonce Option" when I select BUILD for the menu bar. I also don't have the "Step Into Option" from my DEBUG menu. Do I have a problem? Or do I need to turn something on?
View 4 Repliesi would like to add icons/images to my tab control tabs, kind of like a webrowser has the icons in the tabs. i know i need a image list, which i have added. i also added two images, 1.png and 2.png.. the rest, i'm lost.. couldn't find anything decent on the internet..so much work to do and so many choices to choose from...
View 2 RepliesI have a project where i want to add 5 picture boxes and run them .I have tried making a resource folder and putting the icons in there and using like MyImages(0) = My.Resources.FACE03 to retrieve it but i guess i don't have the picture files in the right place and even tried putting icons into the Resourse.resx and won't work. Can anyone tell me or give me a step-by step for this i am using Visual Basic 2005.
View 2 Replieshow to add project icons?
View 3 RepliesIm trying to get the icon from exe's at run time to add a to a contextmenustrip and having problems. [url]...
View 2 RepliesI was wondering if ToolStripMenus and ContextMenus support icons? (e.g having an icon next to the text), please tell me that they do because I cant find any property like that and if they don't that's a real shame :)
View 4 Replies