About 37,800,000 results
Open links in new tab
  1. How to make a simple popup box in Visual C#? - Stack Overflow

    In Visual Studio 2015 (community edition), System.Windows.Forms is not available and hence we can't use MessageBox.Show("text"). Use this Instead: var Msg = new MessageDialog("Some String here", "Title of Message Box"); await Msg.ShowAsync();

  2. .net - How do I create a MessageBox in C#? - Stack Overflow

    This is some of the things you can put into a message box. Enjoy MessageBox.Show("Enter the text for the message box", "Enter the name of the message box", (Enter the button names e.g. MessageBoxButtons.YesNo), (Enter the icon e.g. MessageBoxIcon.Question), (Enter the default button e.g. MessageBoxDefaultButton.Button1) More information can be ...

  3. How to create a drop down menu in WinForms and C#

    I am new to using Visual Studio/WinForms/C#. I am trying to create a simple drop down menu where each item can have a value and a label. This is what I would do in HTML if I was creating a web app. But how can I do this with C# and WinForms?

  4. ComboBox in C# - GeeksforGeeks

    Mar 25, 2025 · In this method, we are going to modify the Form1.cs file and add custom code modification in C# with the help of the ComboBox class. The following steps show how to create a ComboBox dynamically: Step 1: Create a ComboBox using the ComboBox() constructor provided by the ComboBox class.

  5. 5 Examples to Create C# Messagebox [OK, Yes/No etc.] - A-Z Tech

    Oct 9, 2018 · In this tutorial, I will show you how to create various types of C# message boxes with code. How to make message box work in Visual Studio? If you are working in Visual Studio then you have to include the System.Windows.Forms by following this:

  6. C# Message Box - C# Corner

    In this article, you'll learn how to display and use a MessageBox in C# WinForms app. You will also learn how to use C# MessageBox class dynamically in code samples. MessageBox class has an overloaded static Show method that displays a message box with a message and action buttons. The action buttons can be OK and Cancel, Yes and No etc.

  7. Visual C# Tutorial: Message Boxes - YouTube

    Feb 8, 2014 · To create a simple message box, use the following syntax: MessageBox.Show ("Message Box Text Here", "Message Box Caption/Title Bar Text Here", MessageBoxButtons.YesNo,...

  8. Creating a Custom Message Box - CodeGuru

    Jan 26, 2007 · Fortunately, it is very easy for C# developers to develop a custom message box of their own to incorporate it into their applications. In this article, I will explain how to create a simple OK/Cancel message box.

  9. How to Create a custom Message Box in C# - FoxLearn

    Jul 16, 2024 · In this article, we will walk through how to create a custom message box in C# using Windows Forms, providing you with the ability to fully control the appearance and functionality of your message dialogs.

  10. Creating and Managing Modal Dialog Boxes - Visual Studio

    Jan 11, 2024 · Create a modal dialog box in Visual Studio from DialogWindow and also without using DialogWindow and disable the parent window while the dialog box is open.

  11. Some results have been removed
Refresh