About 5,320,000 results
Open links in new tab
  1. vb.net - msgbox button type in visual studio - Stack Overflow

    Feb 28, 2013 · You could use MessageBoxButtons enum to specify different kinds of buttons on messagebox and use DialogResult after the button is clicked to specify different actions for each type of messagebox button.

  2. Buttons in message box in Visual Basic .NET - Stack Overflow

    Apr 11, 2012 · Sure you can use MsgBoxStyle (though I would recommend actually using the native .NET MessageBox.Show) but you won't get your custom button text.

  3. simple dialog like msgbox with custom buttons (vb)

    Nov 8, 2017 · You need some "way" to get the user decision from out side your custom msgbox - one way is use DialogResult Enum for that. Here is a basic example i just wrote to demonstrate that, please see the comments i have added inside the code.

  4. MsgBox function (Visual Basic for Applications) | Microsoft Learn

    Aug 30, 2023 · This example uses the MsgBox function to display a critical-error message in a dialog box with Yes and No buttons. The No button is specified as the default response. The value returned by the MsgBox function depends on the button chosen by the user.

  5. MsgBox and InputBox in Visual Basic 2012

    May 25, 2020 · The objective of MsgBox is to produce a pop-up message box and prompt the user to click on a command button before he /she can continues. This format is as follows: The first argument, Prompt, will display the message in the message box.

  6. MsgBox / MessageBox Demo - The VB Programmer

    · If you DO need to test which button the user clicked (i.e., you displayed a message box with more than one button), then you must use MsgBox as a function, using the following syntax: IntegerVariablearguments

  7. VISUAL BASIC - The VB Programmer

    · If you do NOT need to test which button the user clicked (i.e., you displayed a message box with only an OK button), then you can use MsgBox as if you were calling a Sub. You can use the following syntax: arguments

  8. Visual Basic Built-In Functions: The Message Box

    When calling the MsgBox () function, if you want to show one or more buttons and to show an icon, you can use either two members of the MsgBoxStyle enumeration using the OR operator, or you can add one of the constant values of the buttons to another contant values for an icon.

  9. Visual Basic 05b - Creating Message Boxes With Button Choices

    The standard way of creating a message box is: msgbox ("Some text"). Some text can be anything and it can also be empty but we must have the quotation marks inside the brackets. Also we can insert a variable inside the message box. The displayed text is the first parameter of the message box and it's the required one.

  10. Custom MessageBox buttons - VB.NET Developer Community

    May 11, 2011 · Is here any way to "customize" MessageBox from vb.net to show different text on buttons OK,Cancel,Yes, NO etc.? MessageBox.Show (" Some text '" & Me.Text & "'?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Question)

  11. Some results have been removed
Refresh