Author Topic: Message Box Button Names  (Read 1184 times)

Offline rahulpatel

  • Hero Member
  • *****
  • Posts: 139
  • Karma: +1/-45
  • Gender: Male
    • View Profile
Message Box Button Names
« on: December 03, 2012, 09:09:26 AM »
Hi guys,

i have just started learning the pivotal framework in c# and i wanted to know how to display a message box with buttons of my choice. for example if someone was to create a new customer, i would want the box to say "Would you like to create an internal user or an external user>" and i would want the buttons to say "internal user" and "external user". is this possible?

thanks in advance

Offline Dean Wooldridge, Jr.

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 494
  • Karma: +9/-0
  • Gender: Male
    • View Profile
Re: Message Box Button Names
« Reply #1 on: December 03, 2012, 08:06:40 PM »
string message = "Contact type should not be duplicated";
PivotalMessageBox.Show(message, MessageBoxButtons.OK, MessageBoxIcon.Information);

I don't know about that custom labeling of buttons in the box.  I believe PivotalMessageBox inherits from the C# MessageBox so you probably have access to it's functionality.  This isn't a great answer 'cause like you I am early in the learning curve.