⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 手机短信息的编程.htm

📁 GPS的资料,上来和大家分享,正做这个的朋友可以看看.
💻 HTM
📖 第 1 页 / 共 5 页
字号:
ComboBoxStyle.DropDown;<BR>comboBox.Validating += new 
CancelEventHandler(comboBox_Validating);<BR>}<BR>}</P>
<P>protected override object GetFormattedValue(object value, int rowIndex, ref 
DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter 
formattedValueTypeConverter, DataGridViewDataErrorContexts context)<BR>{<BR>if 
(value != null)<BR>{<BR>if (value.ToString().Trim() != string.Empty)<BR>{<BR>if 
(Items.IndexOf(value) == 
-1)<BR>{<BR>Items.Add(value);<BR>DataGridViewComboBoxColumn col = OwningColumn 
as DataGridViewComboBoxColumn;<BR>col.Items.Add(value);<BR>}<BR>}<BR>}<BR>return 
base.GetFormattedValue(value, rowIndex, ref cellStyle, valueTypeConverter, 
formattedValueTypeConverter, context);<BR>}</P>
<P>void comboBox_Validating(object sender, System.ComponentModel.CancelEventArgs 
e)<BR>{<BR>DataGridViewComboBoxEditingControl cbo = sender as 
DataGridViewComboBoxEditingControl;<BR>if (cbo.Text.Trim() == string.Empty) 
return;</P>
<P>DataGridView grid = cbo.EditingControlDataGridView;<BR>object value = 
cbo.Text;<BR>// Add value to list if not there<BR><BR>if 
(cbo.Items.IndexOf(value) == -1)<BR>{<BR>DataGridViewComboBoxColumn cboCol = 
grid.Columns[grid.CurrentCell.ColumnIndex] as DataGridViewComboBoxColumn;<BR>// 
Must add to both the current combobox as well as the template, to avoid 
duplicate 
entries<BR>cbo.Items.Add(value);<BR>cboCol.Items.Add(value);<BR>grid.CurrentCell.Value 
= value;<BR>}<BR>}<BR>}</P>
<P>public class DataGridViewComboEditBoxColumn : 
DataGridViewComboBoxColumn<BR>{<BR>public 
DataGridViewComboEditBoxColumn()<BR>{<BR>DataGridViewComboEditBoxCell obj = new 
DataGridViewComboEditBoxCell();<BR>this.CellTemplate = 
obj;<BR>}<BR>}</P>&nbsp;<A 
href="http://liujace.itpub.net/post/4284/244759">查看全文</A>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/244759#comments">评论 (0)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/244759">引用 
(0)</A> <A class=commentfoot 
href="http://liujace.itpub.net/category/4284/10421">手机编程[3]</A> <A 
class=commentfoot href="http://liujace.itpub.net/category/4284/7950">技术资源[7]</A> 
<A class=commentfoot 
href="http://liujace.itpub.net/category/4284/7956">开源项目[1]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/7955">C#编程[11]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/42845">随心记事[0]</A> </DIV></DIV>
<DIV class=post><!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"                                   xmlns:dc="http://purl.org/dc/elements/1.1/"                                   xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Description                             rdf:about="http://liujace.itpub.net/post/4284/243270"                             dc:identifier="http://liujace.itpub.net/post/4284/243270"                             dc:title="DataGridView中按下回车键"                             trackback:ping="http://blog.itpub.net//trackback.php?id=243270"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/243270">DataGridView中按下回车键</A></DIV>
<DIV class=contenttime>liujace - by - 21 十二月, 2006 16:26</DIV>
<DIV id=blogbody>
<P>
<P>在VS2005中让DataGridView中按下回车键后,不再竖着移动光标,而是横向移动的代码:</P>
<P>private void dataGridView1_PreviewKeyDown(object sender, 
PreviewKeyDownEventArgs e)<BR>{<BR>if (e.KeyCode == 
Keys.Enter)<BR>{<BR>SendKeys.Send("{TAB}");<BR>SendKeys.Send("{UP}");</P>
<P>}<BR>}</P>
<P>================</P>
<P>继承并重写</P>
<P>public partial class myDGV : System.Windows.Forms.DataGridView<BR>{<BR>public 
myDGV()<BR>{<BR>InitializeComponent();<BR><BR>}<BR>protected override bool 
ProcessCmdKey(ref Message msg, Keys keyData)<BR>{<BR>if ((keyData == Keys.Up || 
keyData == Keys.Down || keyData == Keys.Enter))<BR>{<BR>if (keyData == 
Keys.Enter)<BR>{<BR>System.Windows.Forms.SendKeys.Send("{TAB}");<BR>return 
true;<BR>}<BR>if (keyData == 
Keys.Down)<BR>System.Windows.Forms.SendKeys.Send("{TAB}");<BR>else<BR>SendKeys.Send("+{Tab}");<BR>return 
true;<BR>}<BR>else<BR>return base.ProcessCmdKey(ref msg, keyData);<BR>}</P>
<P>}</P>&nbsp;<A href="http://liujace.itpub.net/post/4284/243270">查看全文</A>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/243270#comments">评论 (0)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/243270">引用 
(0)</A> <A class=commentfoot 
href="http://liujace.itpub.net/category/4284/10421">手机编程[3]</A> <A 
class=commentfoot href="http://liujace.itpub.net/category/4284/7950">技术资源[7]</A> 
<A class=commentfoot 
href="http://liujace.itpub.net/category/4284/7956">开源项目[1]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/7955">C#编程[11]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/42845">随心记事[0]</A> </DIV></DIV>
<DIV class=post><!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"                                   xmlns:dc="http://purl.org/dc/elements/1.1/"                                   xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Description                             rdf:about="http://liujace.itpub.net/post/4284/241796"                             dc:identifier="http://liujace.itpub.net/post/4284/241796"                             dc:title="违反并发性: UpdateCommand影响了预期 1 条记录中的 0 条 (转载)"                             trackback:ping="http://blog.itpub.net//trackback.php?id=241796"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/241796">违反并发性: UpdateCommand影响了预期 1 
条记录中的 0 条 (转载)</A></DIV>
<DIV class=contenttime>liujace - by - 18 十二月, 2006 10:56</DIV>
<DIV id=blogbody>
<P>
<DIV class=tit>违反并发性: UpdateCommand影响了预期 1 条记录中的 0 条 (转载)</DIV>
<DIV class=date>2006-11-19 19:53</DIV>
<TABLE style="TABLE-LAYOUT: fixed">
  <TBODY>
  <TR>
    <TD>
      <DIV 
      class=cnt>UpdateCommand和DeleteCommand出现DBConcurrencyException异常。调试提示:<STRONG><FONT 
      style="BACKGROUND-COLOR: #ffff66">违反并发性</FONT></STRONG>: DeleteCommand 
      影响了预期 1 条记录中的 0 条;或 <STRONG><FONT 
      style="BACKGROUND-COLOR: #ffff66">违反并发性</FONT></STRONG>: 
      UpdateCommand影响了预期 1 条记录中的 0 条。 
      <P>这里的<STRONG><FONT 
      style="BACKGROUND-COLOR: #ffff66">违反并发性:不是指多人编辑引起的并发。</FONT></STRONG></P>
      <P>问题原因:</P>
      <P>在插入、更新或删除操作过程中当受影响的行数等于零时由 <A 
      href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref4/html/T_System_Data_Common_DataAdapter.htm">DataAdapter</A> 
      引发的异常。</P>
      <P>可能的解决方法:</P>
      <P>1 检查是否设有主键。</P>
      <P>2 DeleteCommand的问题:检查是否含有自动编号字段(Access的自动编号字段可能会引发此异常);</P>
      <P>UpdateCommand的问题:检查更新的字段的原始值是否为空值(原始空值更新时可能会引发此异常)。</P>来源:<A 
      href="http://blog.csdn.net/mustbelove/archive/2006/11/13/1381733.aspx">http://blog.csdn.net/mustbelove/archive/2006/11/13/1381733.aspx</A></DIV></TD></TR></TBODY></TABLE><BR>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/241796#comments">评论 (1)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/241796">引用 
(0)</A> <A class=commentfoot 
href="http://liujace.itpub.net/category/4284/10421">手机编程[3]</A> <A 
class=commentfoot href="http://liujace.itpub.net/category/4284/7950">技术资源[7]</A> 
<A class=commentfoot 
href="http://liujace.itpub.net/category/4284/7956">开源项目[1]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/7955">C#编程[11]</A> <A 
class=commentfoot 
href="http://liujace.itpub.net/category/4284/42845">随心记事[0]</A> </DIV></DIV>
<DIV class=post><!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"                                   xmlns:dc="http://purl.org/dc/elements/1.1/"                                   xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Description                             rdf:about="http://liujace.itpub.net/post/4284/240967"                             dc:identifier="http://liujace.itpub.net/post/4284/240967"                             dc:title=".NET3.0已经Pre-release了 "                             trackback:ping="http://blog.itpub.net//trackback.php?id=240967"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/240967">.NET3.0已经Pre-release了 
</A></DIV>
<DIV class=contenttime>liujace - by - 15 十二月, 2006 13:15</DIV>
<DIV id=blogbody>
<P>
<DIV class=posthead>
<H2>本人推荐:</H2>
<P><A 
href="http://www.microsoft.com/downloads/results.aspx?pocId=&amp;freetext=.net%20framework&amp;DisplayEnglishAlso=on&amp;DisplayLang=zh-cn">http://www.microsoft.com/downloads/results.aspx?pocId=&amp;freetext=.net%20framework&amp;DisplayEnglishAlso=on&amp;DisplayLang=zh-cn</A></P>
<H2><A class=singleposttitle id=viewpost1_TitleUrl 
href="http://www.cnblogs.com/ly4cn/archive/2006/06/29/438505.html">.NET3.0已经Pre-release了</A> 
</H2>Posted on 2006-06-29 11:56 <A href="http://ly4cn.cnblogs.com/">沐枫</A> 
阅读(538) <A href="http://liujace.itpub.net/#Post">评论(5)</A> <A 
href="http://www.cnblogs.com/ly4cn/admin/EditPosts.aspx?postid=438505">编辑</A> <A 
href="http://www.cnblogs.com/ly4cn/AddToFavorite.aspx?id=438505">收藏</A> <A 
href="http://www.cnblogs.com/ly4cn/services/trackbacks/438505.aspx">引用</A> <A 
href="http://liujace.itpub.net/d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'saveit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();">网摘</A> 
所属分类: <A href="http://www.cnblogs.com/ly4cn/category/34569.html">.NET</A> <IMG 
height=1 src="手机短信息的编程_files/438505.jpg" width=1> <RDF /></RDF />--&gt;</DIV>
<DIV class=postbody>
<DIV class=postbody>.NET3.0已经Pre-release了。<BR><BR>下面的链接可以下载运行库:<A 
href="http://www.microsoft.com/downloads/details.aspx?FamilyId=8D09697E-4868-4D8D-A4CF-9B82A2AE542D&amp;displaylang=en"><BR><FONT 
color=#1d58d1>http://www.microsoft.com/downloads/details.aspx?FamilyId=8D09697E-4868-4D8D-A4CF-9B82A2AE542D&amp;displaylang=en</FONT></A><BR>它的发布日期是: 
2006-06-23<BR><BR>在该页面下面的Related Resources有SDK下载<A 
href="http://www.microsoft.com/downloads/info.aspx?na=40&amp;p=1&amp;SrcDisplayLang=en&amp;SrcCategoryId=&amp;SrcFamilyId=8D09697E-4868-4D8D-A4CF-9B82A2AE542D&amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f3%2f6%2f4369A25B-D3FC-4F0E-B90A-21A280C60B5F%2f6.0.5456.3.0.WindowsSDK_Vista_idw.DVD.Rel.img"><FONT 
color=#1d58d1>Windows SDK for .NET Framework 3.0 June CTP</FONT></A> (<A 
href="http://download.microsoft.com/download/4/3/6/4369A25B-D3FC-4F0E-B90A-21A280C60B5F/6.0.5456.3.0.WindowsSDK_Vista_idw.DVD.Rel.img">http://download.microsoft.com/download/4/3/6/4369A25B-D3FC-4F0E-B90A-21A280C60B5F/6.0.5456.3.0.WindowsSDK_Vista_idw.DVD.Rel.img</A>),是dvd镜象,大约1.13GB。</DIV>
<DIV class=postbody></DIV>
<DIV 
class=postbody>引用于:http://www.cnblogs.com/ly4cn/archive/2006/06/29/438505.html</DIV>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -