Remove Items from Windows Textbox Context Menu in Vb.net - vb.net

I am working on a Vb.net 2010 and I have created a User Control Text Box which has default Windows Context menu but I have to remove some items from context menu.Items like Right to Left Reading Orders etc. have to remove it and also for that I don't want to create my context menu please keep that in mind.

Related

Is it possible to access the IME window choices through code using VB.Net?

I have a chicken or the egg problem -
I'm trying to create a custom context menu for a richtextbox control that INCLUDES the "Reconversion" menu choice provided by the default textbox context menu when IME is enabled.
So here is the issue -
Duplicating the default text menu choices (Cut,Copy...) is a no brainer, but how can I ADD a menu that will access the IME Reconversion window?
I was thinking it might be possible to hook the Windows handle for this menu but I haven't got the slighest clue.
(Note the RichTextBox control does NOT have a default context menu)
My issue is that I need the formatting capability of the RTF, so I can't just use a TextBox with the default system menu (which works fine with the IME).

VB.net ContextMenu is not Updating

I have a project I converted from VS 2008 to VS 2015 and I am having an issue with the context menu's items not updating their text when the program runs. For instance, I have an item named "Quick Dig" and I need to change it to "Quick Hitch". It shows up fine on the context menu and in the properties of the context menu, but when I run the program it still shows "Quick Dig". Similarly, when I try and add items to the context menu, the new items do not show up either. They show up fine in the context menu and in the properties, but again, when I run the program, it doesn't have them included.
How can I get the context menu to update the new text and also include the additions I am making? Nothing I have tried has helped...

context menu strip within another context menu

hi guys can any one pls help me with this thanks
Im using vb.nwt 2010
I wanted to create a context menu that shows another context menu when the item is clicked
I already have the running code for the first context menu but im lost at showing another context menu within the first one
thanks any help will be appriciated
If what you are asking is 'Can I create a sub menu on a context menu in the same way that a standard menu has one (as per my illustration)?' then the answer is yes. Just use the ContextMenuStrip control which you can find under the Menus & Toolbars strip in the toolbox panel in visual studio.
Set up the context menu the way that you wish it to be and then assign that context menu as the context menu of whichever control you want to invoke it at runtime.

vb.net textbox that won't let me highlight text

I'm working on an upgrade of a VB6 winforms project to VB.Net 2.0. On one form (and only this one form, out of about 25), my text boxes are acting odd.
When a user clicks into (focuses on) a textbox with a value in it, the cursor automatically goes to the beginning (left side) of the textbox and can only be moved with the keyboard arrow keys. I can't re-position the cursor with the mouse, and I can't highlight a section of text with the mouse.
The text box is not readonly and is both visible and enabled. In fact all settings are default as I've dragged out a new textbox and added it to the form and I get the same behavior.
Any ideas would be greatly appreciated.
OK, here is answer:
The startup form was set as an MdiContainer. This form had a split panel container that held another form for Application controls in panel 1 and the working forms in panel 2. When the working forms were loaded into panel 2, they weren't allowed to be top level as there was a .Parent attribute set to the split container panel 2. For some reason, the highlighting of text in a text box is disallowed unless the textbox is on a top level form, and since we couldn't get the working form to top level, we couldn't highlight the text. For reference, check this out.

How do I get the item I right-clicked on in an addin for Outlook 2003?

I've got a great MS Outlook 2003 addin going that adds some features to the context menu. What I am lacking is the ability to get the item I've right-clicked on.
So, in .NET (I'm writing in VB.NET but I know C# as well), how would I grab the item I've right-clicked on? I only want to show this particular context menu addition when I'm right-clicking on an email item, and then do something with that item.
I've already got the menu added and the event firing when I click on my custom buttons, I just need to know how to get the object that is under the cursor in addition to the work I do when clicked.
Thanks for your help.
Try this (using C#):
foreach (MailItem mail in Application.ActiveExplorer().Selection)
{
// ...
}