Re: Beginner Dialog Question
- From: Norapinephrine <N.AhmedRobin@xxxxxxxxx>
- Date: Tue, 06 Nov 2007 15:07:54 -0000
On 6 nov, 09:57, markl...@xxxxxxxxx wrote:
I have a dialog box that asks for user input in 3 textboxes and has 2
buttons: Ok & Cancel.
If the user input is validated, the box should return
DialogResult.OK. If the user input isn't validated, it should display
a message and return nothing at all, keeping the dialog box visible
until the input is validated or the user presses the cancel button.
The problem is that I can't choose between "return DialogResult.OK" or
just "return" (to keep the dialog visible) because they're different
return types.
I can think of a few ways to work around it, including validating the
input in the main form and re-displaying the dialog box if it fails,
but I'm wondering what the standard method of handling something like
this?
In my experience, everyone has something to complain about for all
dialogs.
But in general, dialogs within an application should all behave the
same way.
My recommendation is to 1) choose the behaviour that fits in with the
rest of the dialogs in the application and then 2) get user feedback
from a prototype and update the behaviour accordingly.
.
- References:
- Beginner Dialog Question
- From: markliam
- Beginner Dialog Question
- Prev by Date: PropertyInfo.SetValue()
- Next by Date: Re: Beginner Dialog Question
- Previous by thread: Beginner Dialog Question
- Next by thread: Re: Beginner Dialog Question
- Index(es):
Relevant Pages
|