Show Menu Editor In Program?
Feb 5, 2009I am a beginner to Visual Basic.I have only created the menu items. show the code for open and copy?
View 6 RepliesI am a beginner to Visual Basic.I have only created the menu items. show the code for open and copy?
View 6 Repliesi 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'm new to Visual Basic, and I'm trying to figure out how to make a drop down menu to select the font in a text editor, like Microsoft Word. Does anyone know how I could do that? I'm using Visual Basic 2008 Express Edition.
View 4 Repliesi have written a sub routine for a Save>Menu option for a MDI Text Editor, Please see my code below
Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
Dim f As Form2
If f.Text = "Text Editor V.2 - New Document" Then
[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'm making a some coding editor and i have some question about how to make my editor how hint code like this picture
View 8 RepliesI installed my VB 2008 0n my new laptop with Windows 7. New when i edit a project, i am having a problem with my keybaord. I need to press two of my keys twice to show. The keys are ' and ` This is only happening in VB, My Office and other programs is affected by this. I try the keyboard mapping in Windows.
View 1 RepliesI Want A Picture Viewer With this Features : Editor, Zoom, Slide Show
View 12 RepliesClick to Form to appear in the select, but why not have "menu editor"?
View 3 RepliesCan I create an image editor similar to Windows Paint with Visual Basic.net 2005. I have tried to create one that can draw lines. But I feel little uncomfortable with my code.
View 4 RepliesI'm making a sound editor program, but i've got a problem: if you load a sound, the program must show the spectrum of the sound?
View 2 Repliesi have 2 context menu strip and the wont show when i run debugger
View 4 RepliesHow to show menu according to their roles in vb.net2.0
View 8 RepliesI have created a test app that contains a NotifyIcon and two ContextMenuStrip components.[code]...
View 2 RepliesIf my form does not have focus and I click on a menu item (think File, Edit, View) the sub-menu does not appear. All it does it return focus to the form. I have to first click to give the form focus and then click on the menu. Most other programs do not behave this way. Is there anything that can be done to change it.
View 2 RepliesI want to open a form when the start button is pressed.
View 5 RepliesI has been looking for the codes which it avoid the system menu to be showing on title bar when you click on your right mouse button. The only one I found is removemenu method. I don't want to use removemenu as it would disable the title bar close button. I only needs the code to avoid me to click the right mouse button on the title bar so I still has no luck.
View 2 RepliesI am trying to show a context menu when i click on the tray icon (mnuLeft for left click and mnuRight for right click)[code]...
View 2 RepliesI drag menu strip on the form..Now I add two menu items...I want that when the user right click on Item1, ContextMenuStrip1 should be shown.
Sir with your code,Contextmenu is shown,when i right click on toolstip..
I have tried the foll. Code
Code: Private Sub Item1ToolStripMenuItem_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Item1ToolStripMenuItem.MouseUp ContextMenuStrip1.Show(DirectCast(sender, ToolStripMenuItem).GetCurrentParent.PointToScreen(e.Location)) End Sub
But the probs is that when i right click on Item1ToolStripMenuItem(drop down menu),context menu is shown...but drop down menu is diappeared,I dont want the drop down menu to be disappeared..
I have created a menu item called "Windows", I want to list all open documents within that menu. This is the code I have so far.
'This sub routine lists all the open documents from a menu item
Private Sub WindowsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WindowsToolStripMenuItem.Click
MenuStrip1.MdiWindowListItem = WindowsToolStripMenuItem
My problem is that my "Windows" menu item does not show New Documents, it only lists saved documents that I open.
I believe I need the code for Load Event. I have tried many ideas. I have searched the threads here and also google of course. No luck as of yet. Better description: I have a file named hello.txt. The contents of this text file are "hello". I use my program as the default for .txt files. I dbl click hello.txt. My program loads and the contents are blank and it should have "hello" in it.
View 31 RepliesI have a text box. and I want to make an editor for it. I want the editor to export a file that the text box will get reference.
Example:I put "Hello!" on my editor then I then it will export a file.now when When I open my program with the text box,The text box should also say "Hello!"
So essentially, I have this text editor. How can I make it so when I drop a text file over it, it opens it in textbox2? Or when I doubleclick on the file, it automatically opens it in my program (in textbox2).
View 21 RepliesI'm trying to do a Report Designer for end user. Like the one that adds vb.net when u add to proyect a .rpt file. But i wanted to do it on the run, so the end user can change the desing of the report as they want.
View 2 RepliesHow to show a context menu strip at caret postion (not cursor or pointer postion)Example: If the control is in a text area at 10th line 5th word then context menu strip should display there at caret postion.I am looking for kind of auto prompt that we use to get near caret when we click "Ctrl+Space" in any IDE like Eclipse, VB 2010, VS etc
View 2 RepliesI added a new application recently and I find there is no Configuration Manager. I went to Tools-->Settings and checked Expert Settings, but Configuration Manager does not show up in the Build Menu. It only shows Build Project and Publish Project. I also tried to add Configuration Manager to the tool bar - it was added, but it is grayed out.
I'm trying to get the compiler Configuration Manager to show up. By the way, all of my 8 other VB 2010 Express projects have a Configuration Manager option in the build menu. However, none of those 8 projects were started as a new application in VB2010 - they were all conversions of old VB6 applications (first converted with VB2008, and then with VB2010).
When I right click on the Forms header it was showing the default windows menu with Items (Restore, Move ,Resize , Maximize..). I need to display the Context menu which we have created instead of display Windows menu. We want to hide the windows default.
View 8 Repliesi've created toolstripmenuitems in design time.I named it to mnuUser,mnuKaryawan and form menu based on it too..I create a table that holds the data like this
position menu
admin mnuUser
admin mnuKaryawan
I'm wondering how to achieve suppose the admin logged in,then the menus will be shown?
I want to show contextMenu on Menu Item Right click..But probs is dat when i right click on menu Item,Context Menu is popping up..But menu disapper..I want that menu should not be disappered...
See in Attachment
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 an mdi form with a menustrip.. File Edit View i have an mdi child with a menustrip... Tools Actions i want to be able to add the Tools Actions to the menu in my mdi and not show them in my mdichild.
View 13 Replies