Click here to Skip to main content
14,635,966 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am making a project in .I want that when button is clicked a small menu appears in front of button and contains some buttons

What I have tried:

I have tried menu toolstrip but I didnt worked
Updated 19-Jun-20 8:09am
Richard MacCutchan 19-Jun-20 8:11am
We have no idea what you tried or what your code is doing. Please edit your question and add some proper details.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Create a UserControl, and put your buttons on it.

When the first button is clicked, create an instance of your new control and set it's location to the top left of the button, show it, and call BringToFront:
Dim mc As MyControl = New MyControl()
mc.Location = MyButton.Location
When you want to get rid of it again, remove it from the Controls collection, then Close and Dispose the new Control instance.
Maciej Los 19-Jun-20 8:44am

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100