Pro & Cons of MessageBox? Is There Alternatives?

  • (2 Pages)
  • +
  • 1
  • 2

19 Replies - 14390 Views - Last Post: 13 October 2011 - 02:53 PM

Poll: Pro & Cons of MessageBox? Is There Alternatives? (6 member(s) have cast votes)

MessageBoxes? Good / Bad?

  1. Good (5 votes [83.33%] - View)

    Percentage of vote: 83.33%

  2. Bad (1 votes [16.67%] - View)

    Percentage of vote: 16.67%

Vote Guests cannot vote

#16 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4498
  • View blog
  • Posts: 7,850
  • Joined: 08-June 10

Re: Pro & Cons of MessageBox? Is There Alternatives?

Posted 12 October 2011 - 10:05 PM

I'm thinking we could easily use Tasks to create an async dialog, and that would allow for easy continuation. There could be a ShowAsync method that would return the Task it created to show itself. That way, we could do something like this (it's C#, but the concept's the same):

UltimateDialog.ShowAsync().ContinueWith(t => Debug.Write("returned"), guiTaskScheduler);


Or we could use a callback delegate as the parameter for ShowAsync, with another parameter being a TaskScheduler.

I suggest tasks rather than async, because that's part of the current released version, rather than a CTP.

We could provide a custom message, and a custom button list, and a custom DialogResult. We could even enable input, and even allow for a watermark.

This would be an interesting little project. Github would be a nice place for it.
Was This Post Helpful? 0
  • +
  • -

#17 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: Pro & Cons of MessageBox? Is There Alternatives?

Posted 12 October 2011 - 10:18 PM

And if we have good WPF and Silverlight guys adding with .NET experts, it will be cool .......
I like the concept
Was This Post Helpful? 0
  • +
  • -

#18 dawmail333  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 27
  • View blog
  • Posts: 174
  • Joined: 02-July 07

Re: Pro & Cons of MessageBox? Is There Alternatives?

Posted 13 October 2011 - 04:03 AM

I'll start the WPF one then.
Was This Post Helpful? 0
  • +
  • -

#19 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: Pro & Cons of MessageBox? Is There Alternatives?

Posted 13 October 2011 - 12:50 PM

You can submit your alternative to the Challenge: MessageBox
Was This Post Helpful? 0
  • +
  • -

#20 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: Pro & Cons of MessageBox? Is There Alternatives?

Posted 13 October 2011 - 02:53 PM

View PostCurtis Rutland, on 13 October 2011 - 06:05 AM, said:

I suggest tasks rather than async, because that's part of the current released version, rather than a CTP.


The Async & Await keywords are available in the VS11 Developer Preview. So I'll allow it to be used in the challenge. One a way they can be used is if the function return a Task(Of T). The async feature make it a lot easier to write asynchronous methods.

This post has been edited by AdamSpeight2008: 13 October 2011 - 02:55 PM

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2