Pro & Cons of MessageBox? Is There Alternatives?

  • (2 Pages)
  • +
  • 1
  • 2

19 Replies - 30252 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

#1 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Pro & Cons of MessageBox? Is There Alternatives?

Post icon  Posted 11 October 2011 - 12:39 PM

Pro & Cons of MessageBox? Is There Alternatives?

Attached Image

Let's discuss the pros, cons and alternative of MessageBoxes.

Edit: Reattaching Picture

This post has been edited by AdamSpeight2008: 13 October 2011 - 03:43 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Pro & Cons of MessageBox? Is There Alternatives?

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 16481
  • View blog
  • Posts: 65,328
  • Joined: 12-June 08

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

Posted 11 October 2011 - 12:41 PM

Make your own.
Was This Post Helpful? 0
  • +
  • -

#3 DimitriV   User is offline

  • vexing conundrum
  • member icon

Reputation: 587
  • View blog
  • Posts: 2,746
  • Joined: 24-July 11

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

Posted 11 October 2011 - 01:13 PM

I dont really like that you can't use your own:
•icons
•buttons
•layout

And when you're trying to make a professional looking interactive interface, you need this kind of functionality.
I just use DialogBox when I need my own interface.
So, until MessageBox is improved, I will use DialogBox and advise you do the same.
But if you have any suggestions, I'm still listening.
Was This Post Helpful? 0
  • +
  • -

#4 smohd   User is offline

  • Critical Section
  • member icon


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

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

Posted 11 October 2011 - 01:17 PM

Let me say what I think about message boxes:
Pros:
- They give attention to what has happened, user can no that something should be taken care. User with no experience with application can get their info for errors or mistakes which they made using message box(either build in or custom)
- Easy to react with message box that if message was given somewhere else. So user must react to one of the option

Cons:
- Frighten users, if message box appears every time, non experienced users get frighten by them
- If not well organized, they cause bad design practice...

Alternative: Sometimes we can use labels with different colors to represent important messages or warnings(like mostly in web apps). This reduce number of message boxes to be shown.

Lets get some other ideas.....

This post has been edited by smohd: 11 October 2011 - 01:18 PM

Was This Post Helpful? 0
  • +
  • -

#5 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 16481
  • View blog
  • Posts: 65,328
  • Joined: 12-June 08

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

Posted 11 October 2011 - 01:22 PM

Colored status bar messages have always worked well for me in the past.
Was This Post Helpful? 0
  • +
  • -

#6 cfoley   User is offline

  • Cabbage
  • member icon

Reputation: 2425
  • View blog
  • Posts: 5,068
  • Joined: 11-December 07

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

Posted 11 October 2011 - 02:08 PM

Pretty quick and easy to use, both for the programmer and the user. The lack of customisability ensures a consistent UI between applications on the same platform. You can always roll your own but most of the time you won't have to.
Was This Post Helpful? 1
  • +
  • -

#7 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

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

Posted 11 October 2011 - 02:13 PM

Pro: The MessageBox does support Accessibilty Features (Contents will be read aloud.)
You often forget about this when designing custom controls / dialogs.
Pro: Copy content to Clipboard.
Con: Thread Blocking (It synchronous)
Con: Doesn't timeout to a default safe option.
Con: Assumes that there always is a user there to click it. (Eg Server Apps)
Con: Misused for debugging.

This post has been edited by AdamSpeight2008: 11 October 2011 - 02:16 PM

Was This Post Helpful? 0
  • +
  • -

#8 smohd   User is offline

  • Critical Section
  • member icon


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

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

Posted 11 October 2011 - 02:25 PM

Quote

Pro: Copy content to Clipboard.

Adam, can you explain this? is this a pro or con?
Was This Post Helpful? 0
  • +
  • -

#9 cfoley   User is offline

  • Cabbage
  • member icon

Reputation: 2425
  • View blog
  • Posts: 5,068
  • Joined: 11-December 07

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

Posted 11 October 2011 - 02:42 PM

Quote

Con: Thread Blocking (It synchronous)


Only a con if you don't want it to block the thread. Often it's used when the computer needs user input before it can continue.
Was This Post Helpful? 0
  • +
  • -

#10 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

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

Posted 11 October 2011 - 03:06 PM

View Postsmohd, on 11 October 2011 - 10:25 PM, said:

Quote

Pro: Copy content to Clipboard.

Adam, can you explain this? is this a pro or con?

Definitely a Pro: Try Ctrl + C next time you get MessageBox popping up.
Open Notepan
Ctrl + V

Great for tech-support.
Was This Post Helpful? 0
  • +
  • -

#11 Curtis Rutland   User is offline

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


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

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

Posted 11 October 2011 - 03:23 PM

Quote

Misused for debugging.


This specifically. It's not really a con, per se, because that's more a user error than a drawback to the control itself.

But .NET allows us so many ways to debug, like breakpoints, conditional breakpoints, tracepoints, conditional tracepoints, Debug class, Trace class, Console class, Watch1, Locals, Immediate, etc...

Hell, in C#, we can even do a #if preprocessor directive for logging. I'm sure VB.NET has something similar.

There's so many options, I have to facepalm when I see people just shove a MessageBox.Show to inspect a value. Or worse, a MsgBox.
Was This Post Helpful? 0
  • +
  • -

#12 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

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

Posted 11 October 2011 - 03:40 PM

View PostCurtis Rutland, on 11 October 2011 - 11:23 PM, said:

Hell, in C#, we can even do a #if preprocessor directive for logging. I'm sure VB.NET has something similar.

It does, it even uses the same keyword.
Was This Post Helpful? 0
  • +
  • -

#13 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

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

Posted 11 October 2011 - 03:51 PM

View Postcfoley, on 11 October 2011 - 10:42 PM, said:

Quote

Con: Thread Blocking (It synchronous)


Only a con if you don't want it to block the thread. Often it's used when the computer needs user input before it can continue.

But this is often misused, especially on multiple operations?
Why not put the action into a "Come Back To" list? For example the Windows 8 File Copy Dialog

Why can't it (MessageBox) be made asynchronous? You're Await-ing the result DialogResult of the MessageBox.
Example of Coding against Async_MessageBox
Dim reply As Task(Of DialogResult) = Await Async_MessageBox.Show()


Was This Post Helpful? 0
  • +
  • -

#14 _HAWK_   User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1162
  • View blog
  • Posts: 4,444
  • Joined: 02-July 08

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

Posted 11 October 2011 - 08:10 PM

I make my own. I just like to keep a theme throughout the project and it gives me more flexibility. I see your point Adam! I like the way you think.
Was This Post Helpful? 0
  • +
  • -

#15 dawmail333   User is offline

  • D.I.C Head
  • member icon

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

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

Posted 12 October 2011 - 09:31 PM

View PostAdamSpeight2008, on 12 October 2011 - 08:51 AM, said:

View Postcfoley, on 11 October 2011 - 10:42 PM, said:

Quote

Con: Thread Blocking (It synchronous)


Only a con if you don't want it to block the thread. Often it's used when the computer needs user input before it can continue.

But this is often misused, especially on multiple operations?
Why not put the action into a "Come Back To" list? For example the Windows 8 File Copy Dialog

Why can't it (MessageBox) be made asynchronous? You're Await-ing the result DialogResult of the MessageBox.
Example of Coding against Async_MessageBox
Dim reply As Task(Of DialogResult) = Await Async_MessageBox.Show()



Interesting concept, although I've always thought that if you need an asynchronous result, that you'd need a different UI concept/flow.

However, why don't we, the awesome brains contained here, build a GitHub project to make the Ultimate Messagebox™? Synchronous vs Asynchronous, custom images, selectable messages (for real copying), custom buttons, the works. Sound like a worthy idea?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2