Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MessageBoxButtons with other words 2

Status
Not open for further replies.

RSilva

Mechanical
Joined
Jun 23, 2017
Messages
35
Location
PT
Hello
I want create 1 Box that show 3 buttons with "1", "2" and "a"
I found this comand MessageBoxButtons like this exemple:

Code:
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
 
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
 
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
 
Realy Thank you for your help
 
By the way Daluigi, you saved my day
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top