---
title: "How to create Right Click Menu on C# windows form in Visual Studio 2012"  
description: "In this blog, I am trying to explain \"How to create right click menu on C# form of Visual Studio 2012\".    Step 1: Open Visual Studio 2012"  
author: "Vilas Shende"  
published: 2013-08-18  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/568/how-to-create-right-click-menu-on-c-sharp-windows-form-in-visual-studio-2012  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# How to create Right Click Menu on C# windows form in Visual Studio 2012

### In this blog, I am trying to explain "How to create right click menu on C# form of Visual Studio 2012".

\
\

#### Step 1: Open Visual Studio 2012

### \
![How to create Right Click Menu on C# windows form in Visual Studio 2012](http://4.bp.blogspot.com/-zhh5b6vdtN4/UfEv69iMA9I/AAAAAAAAADA/9q93KFTZTz0/s400/01.png)

\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
**\****\****\****\****\****\****\****Step 2:** [Click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) on "New [Project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects)"

### \
![How to create Right Click Menu on C# windows form in Visual Studio 2012](http://2.bp.blogspot.com/-phUflACCzeg/UfHpleCNUqI/AAAAAAAAADQ/a-Y0jnHOLr0/s400/02.png)\
\
After clicking on "New Project" you will get screen like given below:-

### \
![How to create Right Click Menu on C# windows form in Visual Studio 2012](http://1.bp.blogspot.com/-Scq0Pzi72l0/UfHqNXCwQPI/AAAAAAAAADY/_9pC_F6Q-UE/s320/03.png)\
Step 3: Select "Visual C#" from Project Type & "Windows Form Application" from Project Templates. \
\
\

\
\
\
![How to create Right Click Menu on C# windows form in Visual Studio 2012](http://2.bp.blogspot.com/-sbgNW2URtaY/UfHrG75yZQI/AAAAAAAAADo/ozlx9ZR179M/s320/04.png)\
**\****Step 4:** [Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) the ContextStripMenu from toolbox.

### \
Step 5: Then Right click on Form1 and select the ContextStripMenu property and select your ContextStripMenu which drag and drop on editor.

\
**Step 6:** Click on the contextMenuStrip1 to show on the [form](https://www.mindstick.com/forum/6/multi-form-mfc-application).\
\
![How to create Right Click Menu on C# windows form in Visual Studio 2012](http://4.bp.blogspot.com/-ei58_-LHklA/UfTdLrqz0gI/AAAAAAAAAFY/cwE9miGtp54/s400/003.png)

### \
Step 7: Double click on the refresh and exit to get it events.

### \
Step 8: Write the this.Refresh() in refresh sub menu event below is example:\
private void showToolStripMenuItem_Click(object sender, EventArgs e){ this.Refresh();}

### \
Step 9: Write the this.Close() in Exit sub menu event below is example:\
private void exitToolStripMenuItem_Click(object sender, EventArgs e){ this.Close();}

### \
\
Your coding has been done now, Just press F5 to run your code or Go to Menu Bar > Debug > Start Debugging. You will get current time. THANK YOU.

---

Original Source: https://www.mindstick.com/blog/568/how-to-create-right-click-menu-on-c-sharp-windows-form-in-visual-studio-2012

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
