Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 345 results for
contextmenu
- Page 1
Get Contextmenu clicked item text
Programming
Software Development
12 Years Ago
by raaif
I have created a
contextmenu
(cnt_hys) and am adding items to it as program runs … user input in textbox1. when the user clicks button1 the
contextmenu
shows up and when the user clicks an item on… the
contextmenu
strip i want to get the text of the clicked…
MenuItem + ContextMenu
Programming
Software Development
14 Years Ago
by ritu verma
… click....AS IE favorites.... I m able to show the
contextMenu
when i right click on menu..But the Probs is…
Fetch data in a selected table row using Jquery Contextmenu
Programming
Web Development
6 Years Ago
by Junie30
… to edit data from a selected table row by using
contextmenu
. But when I try to select a row for edting…> </div> </div> </div>
contextmenu
: "edit": { name: "Edit", icon: "fa…
To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by prit005
… folder i want to add this list images to my
contextmenu
at runtime i get that images path at runtime but…
Re: To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by nick.crane
If you intend to use the same [I]
ContextMenu
[/I]for each picture box then delcare the menu variable …
Help regarding ContextMenu
Programming
Software Development
13 Years Ago
by anoop4real
Hi, I am dynamically creating some labels with a
contextmenu
associated with them and I am having few menuitems also …
Re: Get Contextmenu clicked item text
Programming
Software Development
12 Years Ago
by Teme64
Have you tried this basic way to do it? [CODE=VB.NET]' Add some items ContextMenuStrip1.Items.Add("First") ContextMenuStrip1.Items.Add("Second") ContextMenuStrip1.Items.Add("Third")[/CODE] and when you handle the ItemClicked event: [CODE=VB.NET]Private Sub ContextMenuStrip1_ItemClicked(sender As Object, e As …
Re: Get Contextmenu clicked item text
Programming
Software Development
12 Years Ago
by raaif
Unfortunately that method cannot be used here (at least i don't think it can) because this is actually a kind of a search program and the items of the context menu are the keyword input by the user so the text would not be known. any other way please?
Re: Get Contextmenu clicked item text
Programming
Software Development
12 Years Ago
by Teme64
[QUOTE]the items of the context menu are the keyword input by the user so the text would not be known[/QUOTE] That's correct. In my example I just used predefined words. But the key point is to check [ICODE]e.ClickedItem.ToString()[/ICODE] which is the word user selected. This might be a better example: [CODE=VB.NET]Private userInput As String…
Re: Get Contextmenu clicked item text
Programming
Software Development
12 Years Ago
by raaif
[QUOTE] This might be a better example: [CODE] Private userInput As String Private Sub ContextMenuStrip1_ItemClicked(sender As Object, e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles ContextMenuStrip1.ItemClicked userInput = e.ClickedItem.ToString() End Sub[/CODE] Now the variable …
Re: MenuItem + ContextMenu
Programming
Software Development
14 Years Ago
by Piya27
well , I am new to vb.net. but as far as your problem is concerned... u may try to set the menu visible property to TRUE. in order to show the menu too..
Re: To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by nick.crane
You are not adding an event handler for the click event of the menu items. You need to do something like this. [CODE] private void button1_Click(object sender, EventArgs e) { int iCtr = 0; ContextMenuStrip docmenu = new System.Windows.Forms.ContextMenuStrip(); DialogResult result = …
Re: To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by prit005
thanks for reply Now I want to add the number of picture boxes to windows form dynamically. for eg. when user put the input in text box such as user enter 4 then Four picture boxes are added to the form at run time. also I don't know how handle the context menu event also at run time for the above picture boxes in win form............
Re: To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by prit005
Thanks for reply
Re: To show Images at runtime from contextmenu and contextmenu item is added at runtime
Programming
Software Development
12 Years Ago
by nick.crane
Your welcome. If your question is answered then please mark the thread as solved so others know you no longer need help. Thanks.
Re: Help regarding ContextMenu
Programming
Software Development
13 Years Ago
by farooqaaa
Okay that looks a little bit confusing. But I think you can get it done like this: Firstly declare a class-level variable "ClickedLabel": [CODE] // Declare here Label ClickedLabel = null; public Form1() { InitializeComponent(); } [/CODE] Secondly add "MouseUp" event for the label OR make an event "…
Re: Help regarding ContextMenu
Programming
Software Development
13 Years Ago
by anoop4real
Hi, Thanks for the quick reply I tried like this [CODE]lblColor.MouseUp += new MouseEventHandler(lblColor_MouseUp);[/CODE] [CODE] void lblColor_MouseUp(object sender, MouseEventArgs e) { //IMPLEMENTATION }[/CODE] but the event was never called I already have a lblColor.Click event in place, but I cant use for…
Re: Help regarding ContextMenu
Programming
Software Development
13 Years Ago
by farooqaaa
You might be making some mistake. The MouseUp event is always called (after Click event if its fired). Can you post your code please? Thanks
Small problem face me
Programming
Software Development
16 Years Ago
by Ali.M.Habib
… InitializeComponent() { this.mnuLabel = new System.Windows.Forms.
ContextMenu
(); this.mnuColorChange = new System.Windows.Forms.MenuItem(); this…) { if (e.Button == MouseButtons.Right) { this.
ContextMenu
.Show(this, new Point(e.X, e.Y)); }…
MouseHover, MouseLeave problem
Programming
Software Development
14 Years Ago
by ctrl-alt-del
…0.01; this.ResumeLayout(); } private void RightClick() {
ContextMenu
contextMenu
= new
ContextMenu
(); MenuItem m1 = new MenuItem(); MenuItem m2 = new…EventHandler(m2_Click); m3.Click += new EventHandler(m3_Click); this.
ContextMenu
=
contextMenu
; } void m2_Click(object sender, EventArgs e) { Form…
VAADIN Scrollbar
Programming
Web Development
8 Years Ago
by fo2sh
…v-popupview-popup, .v-filterselect-suggestpopup, .v-datefield-popup, .v-
contextmenu
, .v-Notification, .v-menubar-submenu { background-color: rgb(249,….v-popupview-popup, .v-filterselect-suggestpopup, .v-datefield-popup, .v-
contextmenu
, .v-Notification, .v-menubar-submenu, .v-panel-caption, .v…
Classic asp page not working in Firefox, works in IE
Programming
Web Development
14 Years Ago
by mldardy
…; event.returnValue = false } function revert() { document.releaseCapture() hideMenu() } function hideMenu() {
contextMenu
.style.visibility = "hidden" } function handleClick() { var elem = window…
Need Help Opening a Program Using a "Button"
Programming
Software Development
11 Years Ago
by broskie
…
ContextMenu
editorMenu = new
ContextMenu
();…
ContextMenu
= editorMenu; textBox2.
ContextMenu
= editorMenu; textBox3.
ContextMenu
= editorMenu; textBox4.
ContextMenu
= editorMenu; textBox5.
ContextMenu
…
How to use my undo/redo bottom from my other view?
Programming
Software Development
3 Years Ago
by foumzeur
…> listViewCard; private HBox hBox; public static EditableLabel editableLabel; private
ContextMenu
contextMenu
; private MenuItem menuItemRemove; private Button btnLeft, btnRight, btnAddCard; public ColumnView…
Have I found a bug in VB.Net???
Community Center
Say Hello!
17 Years Ago
by PB99
…it. When I click in the Listbox, the
ContextMenu
is displayed. After I make a menuItem selection in…quot;ItemName". Back in the routine where the
ContextMenu
was displayed I would expect these variables to be…” and “ItemName” variables that ‘ were set by the
ContextMenu
event handling routine “MenuItem_Click” [/COLOR] [COLOR=blue]Private[/COLOR…
add a panel to another panel on button event
Programming
Software Development
12 Years Ago
by jrosh
…;dock:RadPane x:Name="ContextMenu1" Header="
ContextMenu
" Title="
ContextMenu
" CanUserClose="True"> <Assembly…
dynamic context menu
Programming
Software Development
10 Years Ago
by ZER09
….XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) {
ContextMenu
c = new
ContextMenu
(); DevExpress.XtraGrid.Views.Grid.GridView view…("menuItems or onClick"); using (
ContextMenu
c = new
ContextMenu
()) { GridView View = (GridView)sender…
Android Native - How to create Contextual Menus
Programming
Mobile Development
1 Year Ago
by dimitrilc
… resource file **contextual.xml** here. override fun onCreateContextMenu( menu:
ContextMenu
?, v: View?, menuInfo:
ContextMenu
.ContextMenuInfo? ) { super.onCreateContextMenu(menu, v, menuInfo) menuInflater.inflate…
Thread's colliding?
Programming
Software Development
16 Years Ago
by johnroach1985
… this.contextMenuNotify = new System.Windows.Forms.
ContextMenu
(); this.menuItemOpen = new System.Windows.Forms.…EventHandler(this.menuItemExit_Click); // // notifyIcon // this.notifyIcon.
ContextMenu
= this.contextMenuNotify; this.notifyIcon.Text = "…
Re: Thread's colliding?
Programming
Software Development
16 Years Ago
by _r0ckbaer
…ComboBox comboBoxUserNames; public IContainer components; public
ContextMenu
contextMenuNotify; private bool IsThreadRunning = false…this.menuItemExit_Click); // // notifyIcon // this.notifyIcon.
ContextMenu
= this.contextMenuNotify; this.notifyIcon.Text = &…
1
2
3
6
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC