Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
can i make an event without mouse double click? cause i made a menu that has a lot of items and i cant see them all to press on them :/ ?
any solution please ?

thanx
Posted
Updated 21-Feb-14 8:27am
v2
Comments
OriginalGriff 21-Feb-14 14:44pm    
Answer updated
Sergey Alexandrovich Kryukov 21-Feb-14 14:45pm    
What are you talking about? There are many other events except double click. What's the problem?
The question does not seem to make any sense. Perhaps if you provide some code sample and demonstrate how to reproduce some problem, it will make sense.
—SA

You can have events that do a lot of things without mouse double click - it is just one of many that most controls support.

But...um...if you have so many menu items that you can't see them all to press on them, then how the heck are you (or your users) going to know which one you are about to select? That is kinda the whole idea of a GUI - you should be able to see it.
Perhaps what you need to do is rethink your design: perhaps grouping menus into related sub menus, or even tab pages on a "Properties" dialog page would be a good idea?


[edit]
I just worked out what you meant!
It's not the running app you have problems with, it's attaching the events to the menu items in Visual Studio when they are outside the form borders and you can't see them in the designer to double click them!

Makes sense now...
OK, yes you can.
Each menu item has a name: normally it starts life as "WhatEverYouTypedTooStripMenuItem", so if your item was "Select" then it would be called "SelectToolStripMenuItem". If you look at the properties pane there is a drop down at the top, which lists all the controls in your Form. If you click on the item you want to set an event for, it's properties will appear in the pane.

Select the "Events" page with the Property Pane button that looks like a lightning bolt, and double click the "Click" Event - that will create and hook up the event handler for you.

It's probably still a good idea to consider shrinking the size of your menu though! :laugh:
[/edit]
 
Share this answer
 
v2
Comments
Member 10594691 21-Feb-14 14:51pm    
Thank you OriginalGriff :) it's working.
OriginalGriff 21-Feb-14 14:58pm    
You're welcome - sorry for the initial confusion!
Member 10594691 21-Feb-14 15:06pm    
no problem it was my fault cause i didn't know how to explain my problem :)
OriginalGriff 21-Feb-14 15:08pm    
:laugh:
Sergey Alexandrovich Kryukov 21-Feb-14 14:52pm    
Agree, a 5. I just suggested some more acceptable UI design ideas, please see.
—SA
You should never have a menu or a sub-menu with too many items shown at once, it would drive the user crazy. There are many, many different approaches.

For example, I bet all those items are very similar in functionality. If this is the case, you should have only one element which only applies some action to some selected item in some UI element (control). What element/control? Nearly anything you may decide to design. It could be a list box with selected item, so your menu item could be applied to some data contained in this selected list item. It could be grid view with selected sell or row, a list view with selected items, selected tab on a tab control, and a lot more.

That was just an example. I don't know the real purpose of your menu item action and your design goals. I just say there are a lot of designs which won't drive the user crazy. If you tell me more about that goal, I will probably be able to suggest some particular design idea. It all depends on what do you want to achieve.

—SA
 
Share this answer
 
Comments
Member 10594691 21-Feb-14 15:00pm    
thanx guys i found the solution i mean OriginalGriff did hehe i am making a program with all the episodes of my favorite series and to watch them from this program i made it like a big windows media player item i already made a database and bind it into a combo box but i thought something extra could help, so i made them in a menu i would like to share a picture but u know i cant, anyway thank you for trying to help me and sorry about my language I'm not that good in English :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900