|
-
Feb 19th, 2004, 12:27 PM
#1
Thread Starter
Addicted Member
Dropdown button?
Is it possible to have dropdown button of win form? I mean dropdown button without toolbar. I know that is possible in toolbar add button with dropdown style, but I need dropdown button on form just like common command button.
Or I have to create my own dropdown button?
regard j
-
Feb 19th, 2004, 12:45 PM
#2
Sleep mode
If you want to change the look of the existing Button Control , then you have to create your own . Do you want to a menu attached to the button (sorry I could be wrong ) !
-
Feb 19th, 2004, 01:18 PM
#3
Thread Starter
Addicted Member
Yea I want a button with attached menu. Do you have some example or link?
regard j
-
Feb 19th, 2004, 01:42 PM
#4
Sleep mode
Is it like this in the image below ?
Add Context Menu Component and this is the code you might need :
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Button1.Click
Dim pnt As Point
pnt.X = 0
pnt.Y = 50
Me.ContextMenu1.Show(Me.Button1, pnt)
End Sub
-
Feb 19th, 2004, 01:44 PM
#5
-
Feb 19th, 2004, 03:45 PM
#6
Thread Starter
Addicted Member
Ok, thanks Pirate. That is very close what I want, only miss little black down arrow at the end of button. Common command button with context menu just doesn't look nice like toolbar dropdown button. It seems, only I can do is to write my own dropdown button.
regard j
-
Feb 19th, 2004, 10:17 PM
#7
Sleep mode
You can create your own or get an image to fit in the button that contains only an arrow only , then align the picture to the left .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|