TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kenneth quirici
NA
378
1.6k
how do i add a menu to a button
May 1 2021 2:48 AM
Specifically, I have a button called 'utilityButton'. When I right-click this I want it to display a drop-down menu with 2 items: test1 & test2.
I've defined a ContextMenu called utilityMenu with these two options and attached it to the utilityButton:
utilityButton.ContextMenu = utilityMenu.
This doesn't acttually seem to be implemented according to the Buttons Class documentation for Windows Forms.
So I can't get it to appear. I right- and left-click the button and nothing happens.
Any help appreciated.
Thanks!
Ken
Reply
Answers (
1
)
Dll files are not showing after deploying Windows Application
Incorrect syntax for Set