显示必填字段的最佳方式 [英] Best way to show a required field

查看:122
本文介绍了显示必填字段的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hallo,

我目前正在将Windows应用程序(使用win32开发系统构建)移动到.net。在这种情况下,我还检查了GUI指南,以便与Windows标准以及客户体验保持一致。

I am currently in the process to move a Windows application (built with a win32 development system) to .net. In this context I also checked the GUI guidelines in order to be in line with Windows standards as well as with the customer experience.

如何对必填字段进行符号化:

How to symbolize required fields:

UX指南:http://msdn.microsoft.com/en-us/library/windows/desktop/aa511268.aspx#requiredInput

UX Guide: http://msdn.microsoft.com/en-us/library/windows/desktop/aa511268.aspx#requiredInput

表示在前面使用红色星号字段标签。

says to use red asterisk in front of the field label.

问题1:如何使用Visual Studio 2010(或稍后的2012)完成此操作:是否有一个属性可将标签设置为必需,以显示红色星号? (用红色字体创建一个单独的固定文本,*看起来有点麻烦...)


Question 1: How can this be done with Visual Studio 2010 (or 2012 later on): Is there an attribute to set the label to required that it displays the red asterisk? ( to create a seperate fixed text with red font and the * seems a little cumbersome...)

问题2:如何处理两个相互依赖的领域?例如用户必须键入名字或姓氏,但至少要有一个。 (他也可以打扰)

Question 2: How to handle two fields which are depent of each other? e.g. User has to key in first name OR last name, but at least one of then. (He can enter bother as well)

期待您的体验。

谢谢

Niko

推荐答案

您好Niko

Hi Niko

尝试使用不同的强制输入控件显示不同的红色星号BackColor(浅红色)。

Instead of using Red asterisk, try showing the Mandatory input controls with different BackColor ( Light Red ).


这篇关于显示必填字段的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆