×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MessageBoxButtons with other words
2

MessageBoxButtons with other words

MessageBoxButtons with other words

(OP)
Hello
I want create 1 Box that show 3 buttons with "1", "2" and "a"
I found this comand MessageBoxButtons like this exemple:

CODE --> NX

result = MessageBox.Show("Choose 1 option", "", MessageBoxButtons.YesNoCancel) 

there are any way to change "yes", "no" and "cancel" for "1", "2" and "a"?

Rúben Silva

RE: MessageBoxButtons with other words

No, the message box function has a few, very specific options. If you would like something outside of these options, you will need to make a custom messagebox (using a winform or the NX blockstyler).

www.nxjournaling.com

RE: MessageBoxButtons with other words

2
Function AskMsg(ByVal title As String, ByVal message As String) As Boolean
Dim messages As String() = {message}
Dim buttons As UFUi.MessageButtons
With buttons
.button1 = True
.button2 = False
.button3 = True
.label1 = "Yes"
.label2 = Nothing
.label3 = "No"
.response1 = 1
.response2 = 0
.response3 = 2
End With
Dim resp As Integer

theUFSession.Ui.LockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
theUFSession.Ui.MessageDialog(title, UiMessageDialogType.UiMessageQuestion, messages, 1, True, buttons, resp)
theUFSession.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)

If resp = 1 Then Return True Else Return False
End Function

RE: MessageBoxButtons with other words

(OP)
Realy Thank you for your help

RE: MessageBoxButtons with other words

(OP)
By the way Daluigi, you saved my day

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources