answersLogoWhite

0

All types of msgboxs:

Source: w3schools

Default = 0

  • 0 = vbOKOnly - OK button only
  • 1 = vbOKCancel - OK and Cancel buttons
  • 2 = vbAbortRetryIgnore - Abort, Retry, and Ignore buttons
  • 3 = vbYesNoCancel - Yes, No, and Cancel buttons
  • 4 = vbYesNo - Yes and No buttons
  • 5 = vbRetryCancel - Retry and Cancel buttons
  • 16 = vbCritical - Critical Message icon
  • 32 = vbQuestion - Warning Query icon
  • 48 = vbExclamation - Warning Message icon
  • 64 = vbInformation - Information Message icon
  • 0 = vbDefaultButton1 - First button is default
  • 256 = vbDefaultButton2 - Second button is default
  • 512 = vbDefaultButton3 - Third button is default
  • 768 = vbDefaultButton4 - Fourth button is default
  • 0 = vbApplicationModal - Application modal (the current application will not work until the user responds to the message box)
  • 4096 = vbSystemModal - System modal (all applications wont work until the user responds to the message box)
User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How do you make a msgbox display only after 2 checkboxes are checked VB2010?

If checkbox1.checked = true then If checkbox2.checked = true then Msgbox("Hello") End if End if


How do you make a pop-up messagebox by pressing a button in visual basic?

Example: MsgBox("This is an example!", MsgBoxStyle.Information, "Example") or: MsgBox("This is an example!", MsgBoxStyle.Exclamation, "Example") or: MsgBox("This is an example!", MsgBoxStyle.Critical, "Example") you can choose between one of these three styles. just add one of these in the line where you want it to be displayed like: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("This is an example!", MsgBoxStyle.Information, "Example") End Sub


How do you find out how many digits are in integer using vbscript?

num=32767 MsgBox(len(num))


Code for linear search in vb?

Private Sub search_Click() On Error GoTo donothing a = InputBox("enter the name") s1 = ("name='" & Trim(a) & "'") rs.Findfirst (s1) If .nomatch Then MsgBox "record not found" Else MsgBox "record found" Text1.Text = rs(0) Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) End If Exit Sub donothing: MsgBox "error description" End Sub


How do find factorial using vbscript?

<html> <script language="vbscript"> n=cint(inputbox("Enter a number")) dim f f=1 if n<0 then Msgbox "Invalid number" elseif n=0 or n=1 then MsgBox "The factorial of given number "&n&" is :"&f else for i=n to 2 step -1 f=f*i next MsgBox "The factorial of given number "&n&" is :"&f end if </script> </html>

Related Questions

What are some different cat icons?

There are many different cat icons. Some different cat icons include: nyan cat icons, chinese cat icons, cartoon cat icons, black cat icons and realistic cat icons.


Where can you get the best icons for a website?

You can get SlideEgg Eye-catching Slides Carnival Icons PowerPoint Presentation. These icons represent several different images of the Carnival celebrations. These images are designed with unique colors and designs. There are many different kinds of Slides at SlideEgg, and they have different styles.


What are the icons on top of phone?

there are different icons o top of phone, do not know what they mean


Using notepad how do you make a msgbox that leads to another msgbox eg you click yes to the first msg then a second one pops up?

x = MsgBox("message",0+16 ,"title") x = MsgBox("message 2",0+16 ,"title 2") and save it as name.vbs name being whatever you want


Windows uses different icons for different file types Describe three different icons and the files they represent in windows xp?

in windows 2000/xp and windows 9x


How do you make a msgbox display only after 2 checkboxes are checked VB2010?

If checkbox1.checked = true then If checkbox2.checked = true then Msgbox("Hello") End if End if


How do you make a pop-up messagebox by pressing a button in visual basic?

Example: MsgBox("This is an example!", MsgBoxStyle.Information, "Example") or: MsgBox("This is an example!", MsgBoxStyle.Exclamation, "Example") or: MsgBox("This is an example!", MsgBoxStyle.Critical, "Example") you can choose between one of these three styles. just add one of these in the line where you want it to be displayed like: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("This is an example!", MsgBoxStyle.Information, "Example") End Sub


How do you find greatest number among three with vb.net?

Dim a, b, c As Integer a = InputBox("enter 1st no.") b = InputBox("enter 2nd no.") c = InputBox("enter 3rd no.") If a > b Then If a > c Then MsgBox("A is Greater") Else MsgBox("C is greater") End If Else If b > c Then MsgBox("B is Greater") Else MsgBox("C is Greater") End If End If End Sub


What are the pictures called on the screen that shows the different software?

icons


What is the use of MSGBOX in Visual Basic?

MessageBox is a way to show a message when the user does a specific thing. There is two ways to do it, you can use: MsgBox("text", MsgBoxStyle.whatever, "title) or MessageBox.Show("text", "title")


What is the difference between msgbox and inputbox functions?

i don't know what is the difference between msgbox and inputbox function because i want to know the difference between them but i didn't got answer what is this foolishness stupid '


What do the Forum icons mean on WikiAnswers?

There are a number of different topic icons we use on the Community Forum to indicate the status of a thread. You can find a summary of the different symbols at the related link at the bottom of this page.