I am coding a C# forms application, and have a question in relation to the text property of a button where a messagebox is shown on the button's click event.
The button is a remove button that shows a messagebox where the user can press yes, no or cancel.
In the above situation, should the text of the button have the "..." characters following the text of the button?
With menuStrip items, and a form is displayed, the convention is to have the "..." characters after the text property of the menuStrip item. When following this convention, should the remove button have the same "..." characters.
One element of creating a good user interface is consistency. I assume that you want to create a user interface that is consistent with similar user interfaces on Windows.
Microsoft has published a user experience guide that contains the a guideline regarding using ellipsis with commands (buttons and menu items):
Indicate a command that needs additional information (including confirmation) by adding an ellipsis at the end of the button label.
So if your command opens a message box which requires further input or opens another dialog box where the user has to provide input you should use the ellipsis. But if the command doesn't open a secondary window, or the purpose of the command is to open a secondary window like an about box or a dialog box with options then no ellipsis should be used.
Microsoft provides a rationale for this design:
Proper use of ellipses is important to indicate that users can make further choices before performing the action, or even cancel the action entirely. The visual cue offered by an ellipsis allows users to explore your software without fear.
Your specific case where confirmation is required is included in the guideline that states that you should add ellipsis. Your users will know that they can invoke the remove button without fear.
Related
I am new in caliburn microframework and MVVM itself in WPF. I am looking for way how to achieve activating multiple user control in one page, dependent on user selection.
As you can see in the picture below, when user clicks on the new file the window "Select calculation" will appear and in the checkboxes user can select calculation according some standards like DIN, CSN etc.
After confirmation with OK button, in the "Input parameters screen part" then appear User controls which will contain textboxes for input parameters.
Problem is that every standard has slightly different parameters for calculation. So my goal is to open only user control with input parameters textboxes and labels which are corresponding with selected standard.
So my question is: How to achieve this activating of multiple user controls in one screen part? If I use conductor I can activate only one item in time.
I thought about approach that I will load all input parameters user controls and make visible only these which corresponding with standards that user selected.
Image representing layout of application
I have a Windows forms PropertyGrid and a customer UITypeEditor per http://msdn.microsoft.com/en-us/library/system.drawing.design.uitypeeditoreditstyle.aspx
Displays an ellipsis (...) button to start a modal dialog box, which requires user input before continuing a program, or a modeless dialog box, which stays on the screen and is available for use at any time but permits other user activities.
That ellipsis button is pretty small. How can I relabel it with a more helpful label?
Long story short, you can't. The basic MS PropertyGrid does not allow you to customize this text. It even uses a bitmap with 3 dots instead of text anyway and the width of the control is fixed.
Disclaimer: I'm the developer behind Smart PropertyGrid.Net, which can do what you want to achieve.
In my windows application i have a tab control with many tabs and sub tab controls also, each and every tab has many field like text boxes and list boxes.
i thought to validate every field by clicking button called "NEXT" before changing to nexttab and if any field fails with validation a message box should pop-up with error message and focus should remain in that field. can any one help me with ur suggestions...
validation requirements are required field and only numeric and alphanumeric...
Thanks in advance!!!!
A good way is to create a derived controls with input area and validation logic. Then, it is matter of enumerating hierarchy of controls and see if they are valid based on validation rules applied.
Another way, is to "attach" validation logic to controls. How? A mapping mechanism or use the "Tag" property.
But isn't it better to validate control using "Validate" event, when user tries to exit the control? That will not allow user to supply bunch of trash and hope it can be saved.
In WPF I am looking for a "do not show again" checkbox on my messagebox popup.
Does anyone know where I can get such a control or maybe how to copy the style of the regular WPF messagebox so I can create my own?
Thanks
Take a look at the Dialog Boxes Overview. The overview covers Message Boxes, Common Dialog Boxes, and Custom Dialog Boxes. In your case you'll want to create a simple Custom Dialog Box that includes a message, a checkbox, and however many buttons you need.
Basically you need to define a new code-behind file that includes your TextBlock, CheckBox, and Buttons in a panel object, and you need to extend Window. In your code-behind file you implement any necessary logic to implement the user's choice, and you return this result to the object containing the custom dialog box.
Make sure to pay special attention to this line of code when creating your custom dialog box:
// Open the dialog box modally
messageBox.ShowDialog();
The call to ShowDialog() will ensure that the user must take action against your dialog box before moving on to other parts of your application.
I think , you may have to create by yourself and it is really easy in the WPF
You could just use a dialog box. An easy way to do it would be to keep a variable in the project settings that would be updated on the popup close() event. So then you would just have to verify the value in the project settings before showing the popup.
I want to implement a search box in a window form. In that window form, I have a few botton and a text box.
I want to support the use case when user enter a string in the search box and then we can find the that string and highlighted like firefox does. Is it hard to do this?
I googled and found this link that has the search box control. but I don't quite understand the code. If anyone is familiar with control.sendMessage, Could you please give me some help on understand that control.
here is the link:
http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/a07c453a-c5dd-40ed-8895-6615cc808d91/
Thanks
There is no single WinForms or Windows control that provides this functionality. You need to break the problem down into parts:
1) Create a search box
I believe the link you give adds the "Search" cue to a textbox but doesn't add the search button(?) - if that is the case you'll want to combine the textbox with a new button in a user control.
SendMessage sends a message to a Windows control or Window. In this case it tells the textbox to display the "Search" cue. You need to do this because this behaviour is not exposed by the WinForms controls.
2) Work out how to highlight sections of the text
If you are just using the WinForms controls you'll need to use a RichTextBox control and work out how to change the background color at various points in the text.