摘要:
DataGridView 绑定 List 不会自动更新正确方式是将 List设置为 BindingList 即可 (双向绑定) 阅读全文
摘要:
Step1:根据注册表获取系统默认的邮件客户端 运行地址 Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(@"mailto\shell\open\command");Step2:设置进程参数,启动应用程序 string path = key.GetValue("").ToString().Split('\"')[1]; System.Diagnostics.ProcessStartInfo pinfo = new 阅读全文
摘要:
通过CellStyle设置<DataGridTextColumn Header="ScreenName" Binding="{Binding ScreenName}" > <DataGridTextColumn.CellStyle> <Style TargetType="DataGridCell"> <Setter Property="ToolTip" Value="{Binding Name}" /> </Style> </Da 阅读全文
摘要:
Ext.FormPanel 无法加载到指定From表单内的ID的容器中必须在<form id="form1" runat="server"></form>外原因可能是:Ext.FormPanel 会输出一个form,form不能嵌套 阅读全文
摘要:
function IsURL(str_url){ var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //ftp的user@ + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52.184 + "|" // 允许IP和DOMAIN(域名) + "([ 阅读全文
摘要:
Extjs提交时,会默认提交一个名为callback的参数,返回式亦会获取参数,我们需要在服务端对callback进行处理。(即使返回正确的Json格式字符串,亦会报错:invalid label) // 获取ScriptTagProxy提交时的默认参数callBack string callBack = context.Request["callBack"]!=null? context.Request["callBack"]:string.Empty; //Json后的字符串 string temp=JsonConvert.SerializeO... 阅读全文
摘要:
设置或获取窗体的对话框结果命名空间:System.Windows.Forms程序集:System.Windows.Forms(在 system.windows.forms.dll 中)namespace System.Windows.Forms{ // 摘要: // Specifies identifiers to indicate the return value of a dialog box. [ComVisible(true)] public enum DialogResult { // 摘要: // Nothi... 阅读全文
摘要:
属性字头选择器(Attribute Contains Prefix Selector)jQuery 属性字头选择器的使用格式是 jQuery(‘[attribute|=value]‘) ,例如 jQuery(‘[herflang|=en]‘) 这句代码执行时将会选择文档中所有含有 herflang 属性,并且 herflang 的值以 “en” 开头的元素,即使 “en” 后面紧跟着连字符 “-” 也能进行选择。属性开头选择器(Attribute Starts With Selector)jQuery(‘[attribute^=value]‘) ,用于选择属性的值以某个字符串开头的元素,但和 阅读全文
摘要:
JS版StringFormat函数原理:根据参数个数循环替换字符串 String.prototype.StringFormat = function() { if (arguments.length == 0) { return this; } for (var StringFormat_s = this, StringFormat_i = 0; StringFormat_i < arguments.length; StringFormat_i++) { ... 阅读全文
摘要:
代码一:将Name中的字符COPY至Comment中Option ExplicitValidationMode = TrueInteractiveMode = im_BatchDim mdl ' the current model' get the current active modelSet mdl = ActiveModelIf (mdl Is Nothing) Then MsgBox "There is no current Model "ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox &qu 阅读全文