Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Adding user defined buttons to Messagebox

Adding user defined buttons to Messagebox

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jagan79
    wrote on last edited by
    #1

    Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan

    H D 2 Replies Last reply
    0
    • J jagan79

      Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Defining your own dialog is best way to solve the problem. The alternative is messy, full of P/Invoked functions, managed struct representations, and Windows messaging. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

      1 Reply Last reply
      0
      • J jagan79

        Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        What you've come up with is the best way to do it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups