new to vb.... message box problem

i was wondering if it is possible to do something like the following:-

MessageBox.Show(a, b, c, d)

where:-

string a = "message"
string b = "title"
? c = MessageBoxButtons.AbortRetryIgnore
? d = MessageBoxIcon.Error


if it is possible, i dont know what variable type to use for the last 2 message box options, so any help/links would be most appreciated,

cheers
dai

Comments

  • : i was wondering if it is possible to do something like the following:-
    :
    : MessageBox.Show(a, b, c, d)
    :
    : where:-
    :
    : string a = "message"
    : string b = "title"
    : ? c = MessageBoxButtons.AbortRetryIgnore
    : ? d = MessageBoxIcon.Error
    :
    :
    : if it is possible, i dont know what variable type to use for the last 2 message box options, so any help/links would be most appreciated,
    :
    : cheers
    : dai
    :

    Try:

    msgbox ("message",18,"Title")

    that should work

    18 = abort, entry and ignore buttons and a critical message icon

    Hope that helps

    -Fallen
  • : : i was wondering if it is possible to do something like the following:-
    : :
    : : MessageBox.Show(a, b, c, d)
    : :
    : : where:-
    : :
    : : string a = "message"
    : : string b = "title"
    : : ? c = MessageBoxButtons.AbortRetryIgnore
    : : ? d = MessageBoxIcon.Error
    : :
    : :
    : : if it is possible, i dont know what variable type to use for the last 2 message box options, so any help/links would be most appreciated,
    : :
    : : cheers
    : : dai
    : :
    :
    : Try:
    :
    : msgbox ("message",18,"Title")
    :
    : that should work
    :
    : 18 = abort, entry and ignore buttons and a critical message icon
    :
    : Hope that helps
    :
    : -Fallen
    :

    Thanks v much!
    dai

  • : : : i was wondering if it is possible to do something like the following:-
    : : :
    : : : MessageBox.Show(a, b, c, d)
    : : :
    : : : where:-
    : : :
    : : : string a = "message"
    : : : string b = "title"
    : : : ? c = MessageBoxButtons.AbortRetryIgnore
    : : : ? d = MessageBoxIcon.Error
    : : :
    : : :
    : : : if it is possible, i dont know what variable type to use for the last 2 message box options, so any help/links would be most appreciated,
    : : :
    : : : cheers
    : : : dai
    : : :
    : :
    : : Try:
    : :
    : : msgbox ("message",18,"Title")
    : :
    : : that should work
    : :
    : : 18 = abort, entry and ignore buttons and a critical message icon
    : :
    : : Hope that helps
    : :
    : : -Fallen
    : :
    :
    : Thanks v much!
    : dai
    :
    :

    no problem, according to what i just read you can actually do it this way aswell.

    msgbox ("message","title", buttons/icon)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories