摘要: key press eventif (e.KeyChar == 13) { if (this.ActiveControl.Text.Trim() == "") { //this.ActiveControl.Focus();SendKeys.Send("{F4}"); } else { this.SelectNextControl(this.ActiveControl, true, true, true, true); } } 阅读全文
posted @ 2013-03-14 22:34 feidaochuanqing 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1、//要出现在tab中的窗体必须继承自DockContent public partial class FrmUserAdd : DockContent { public FrmUserAdd() { InitializeComponent(); this.text ="用户增加";//这里的text设置的tab的名称 } }2、 public partial class FrmMain : Form { public FrmMain() { //将DockPanel加到本窗体上 //设置主窗体的isMdi = true InitializeComponent(); } 阅读全文
posted @ 2013-03-10 20:32 feidaochuanqing 阅读(796) 评论(0) 推荐(0) 编辑
摘要: private void InitNavBar() { DataSet ds = new DataSet(); string str = @"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\DevTestData.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; ds = SqlHelper.ExecuteDataset(str, CommandType.Text, "select * from sysfun"); forea 阅读全文
posted @ 2013-03-10 07:23 feidaochuanqing 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 打印方法function PrintPage() { try { if (testPrintContorl()) { hideNoPrintElement(); factory.printing.Print(false); //设置为false,直接打印 showNoPrintElement(); } else { return false; } } catch (e) { alert("打印出错,请确定使用的是IE浏览器!\n请确定已经安装打印机并正确的链接到打印机!"); showNoPrintElement(); } } function SetPrintSettin 阅读全文
posted @ 2013-03-09 10:46 feidaochuanqing 阅读(359) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrmElectronicStatementPrint.aspx.cs" Inherits="FundInfoMg_Report_FrmElectronicStatementPrint" %><%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyTo 阅读全文
posted @ 2013-03-07 13:42 feidaochuanqing 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.client.config<?xml version="1.0" encoding="utf-8"?><Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Enabled>true</Enabled> <ServerUrl>http://localhost/AutoUpdateFiles/S 阅读全文
posted @ 2013-03-04 23:12 feidaochuanqing 阅读(191) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Security.Cryptography;namespace 加密与解密{ public partial class Form1 : Form { public Form1() { InitializeComponent 阅读全文
posted @ 2013-03-04 23:06 feidaochuanqing 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1、服务器端使用配置文件<?xml version="1.0" encoding="utf-8" ?><configuration> <system.runtime.remoting> <application> <service> <wellknown mode="Singleton" type="Service.Singer,Service" objectUri="Singer" ></wellknown> 阅读全文
posted @ 2013-03-03 00:22 feidaochuanqing 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1、服务器端的代码1-1 Service对象public class Singer:MarshalByRefObject { public string Sing(string str) { return "i'm sing..." + str; } }1-2 宿主class Program { static void Main(string[] args) { //创建一个通道用来公布对外的服务 TcpChannel channel = new TcpChannel(8888); //将tcp通道通过通道服务进行注册,这里的false只的是不使用iis的安全机制 阅读全文
posted @ 2013-03-02 23:48 feidaochuanqing 阅读(131) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Xml.Linq;namespace XML读取{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private 阅读全文
posted @ 2013-02-21 21:05 feidaochuanqing 阅读(147) 评论(0) 推荐(0) 编辑