C# Winform and button menu

T.Zacks 3,996 Reputation points
2021-07-28T16:14:44.183+00:00

i have follow instruction from where to get the job done https://stackoverflow.com/a/10803307/9359783

but see this one https://stackoverflow.com/a/27173509/9359783
guide me how to implement it ?

i want design should be same as image given there. i am talking about this image https://i.stack.imgur.com/gY8Xf.png
the image has nice divider....how to have it ? image has arrow....does it created by code ?

thanks

Developer technologies Windows Forms
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-07-28T16:44:58.767+00:00

    See the following custom control.

    My test

    118670-figure2.png

    using System;  
    using System.Windows.Forms;  
      
    namespace SplitButtonDemo  
    {  
        public partial class Form1 : Form  
        {  
            public Form1()  
            {  
                InitializeComponent();  
            }  
      
            private void firstToolStripMenuItem_Click(object sender, EventArgs e)  
            {  
                MessageBox.Show($@"Hello from {((ToolStripMenuItem)sender).Name}");  
            }  
      
            private void OptionsButton_Click(object sender, EventArgs e)  
            {  
                MessageBox.Show("Clicked");  
            }  
        }  
    }  
    
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.