摘要:
public class ControlImage{ #region API [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct SCROLLINFO { public uint cbSize; public uint fMask; public int nMin; public int nMax; public uint nPage; public int nPos; pu... 阅读全文
摘要:
要替换的内容: Description ( "Gets or sets the name of the series." ), Description( "Gets the series' collection of data points." ), Category("Elements"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Editor("DevExpress.XtraCharts.Design.Se 阅读全文
摘要:
using System;using System.Windows.Forms;using System.IO;using System.Collections;using Microsoft.Win32;using System.Configuration.Install;using System.ServiceProcess;using System.Diagnostics;namespace hhhh{ public partial class Form1 : Form { public Form1() { Initializ... 阅读全文
摘要:
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;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { Init... 阅读全文
摘要:
private void button2_Click(object sender, EventArgs e) { string FormURL = "http://bbs.mydigit.cn/login.php"; string list2 = "?foward=&jumpurl=http://bbs.mydigit.cn&step=2&lgt=0&pwuser=hdl&pwpwd=hdl&question=0&customquest=&answer=&hideid=1&cktime 阅读全文
摘要:
问题: 如何定义自动编号字段的初始值和步进值?如何定义自动增加字段的初始值和步进值?如何使删除过数据的自动增加字段的开始值重新从1开始? 回答: 通过以下语句,你可以在建表的时候指定其起始值和步进值: CREATE TABLE tblNewOrder2 ( OrderId AUTOINCREMENT (1000, 10), ItemId LONG, Quantity LONG) 你也可以用下面的语... 阅读全文
摘要:
<!DOCTYPE html><html><style _mce_bogus="1"><!--html,body {margin:0; padding:0; position:absolute; width:100%; height:100%; overflow: hidden}#screen {width:80%; height:50%; background:#ddd; position: a... 阅读全文
摘要:
(1)Dev控件GridControl 的使用1、确认当前正在编辑的单元格的输入this.gridview1.CloseEditor();2、保存当前行的值到数据源this.gridview1.UpdateCurrentRow();3、通过数据适配器把修改更新到数据库sqlDataAdapter1.Update(myDataSet, "MyTable")//此时直接通过DataAdapter执行U... 阅读全文
摘要:
今天用到了gridcontrol这个控件,要求写一个gridview的双击事件,因为想要的效果是只双击行才出Message,用gridview的Double_Click我没实现,后来想到MouseDown,一试,很简单,首先,仍旧需要将gridview1.OptionsBehavior.Editable设为false,下面是代码: //双击行弹出nodeDetail信息private void g... 阅读全文
摘要:
只有在右击节点时才会触发private void treeList1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { treeList1.ContextMenuStrip = null; TreeListHitInfo hInfo = treeList1.CalcHitInfo(new Point(e.X, e.Y)); TreeListNode node = hInfo.Node; treeList1.FocusedNode = node; if (node != null) 阅读全文