Results 1 to 7 of 7

Thread: Dropdown button?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 ) !

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    Yea I want a button with attached menu. Do you have some example or link?

    regard j

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Is it like this in the image below ?
    Add Context Menu Component and this is the code you might need :

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal
    2. e As System.EventArgs) Handles Button1.Click
    3.         Dim pnt As Point
    4.         pnt.X = 0
    5.         pnt.Y = 50
    6.         Me.ContextMenu1.Show(Me.Button1, pnt)
    7.     End Sub

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    D'uh , the attachment :
    Attached Images Attached Images  

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    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

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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
  •  



Click Here to Expand Forum to Full Width