Subscribe to Subscribers

Resources » Technical Tips » Visual Studio

How to use mbox in C#?


Posted Date:     Category: Visual Studio    
Author: Member Level: Gold    Points: 10


You can use messagebox.show() method by simply typing mbox and it provides you similar functionality same as that of Messagebox.Show() gives. This article explains on how to use mbox in C# to display a Message Box. I hope it will be useful for all people who are not aware of mbox functionality which is available in winforms.



How to use mbox in C#?

Introduction

What is mbox?


mbox is code snippet provided by .Net framework so that you can use messagebox.show method in your winform applications.

How to use mbox in C#?


You have to just type mbox in your program and press tab twice.
You will find messagebox.show() method is generated in your winform.
You can have various code snipets are available such as ctor , class , cw , Do , Lock.

class YourProgramname
{
static void Main()
{
mbox
}
}


After pressing tab twice , you will get following results:

class YourProgramname
{
static void Main()
{
System.Windows.Forms.MessageBox.Show("Test");
}


Instead of "Test" , you can write your customized message. Shortcuts make intelliSense enable so that it can automatically fill in code snippets in the code editor without using a menu. Valid locations to insert this snippet are as follows:

It can be written inside a particular method, an indexer, a property accessor, or an event accessor.





Did you like this resource? Share it with your friends and show your love!


Responses to "How to use mbox in C#?"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Shortcuts to work with Visual Studio
    Previous Resource: Open Visual studio 2010 solution file in visual studio 2008 or visual studio 2005
    Return to Resources
    Post New Resource
    Category: Visual Studio


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Mbox  .  VS studio  .  

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.