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

📄 手机短信息的编程.htm

📁 GPS的资料,上来和大家分享,正做这个的朋友可以看看.
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0025)http://liujace.itpub.net/ -->
<HTML lang=zh-CN dir=ltr xml:lang="zh-CN" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Soyjace</TITLE>
<META http-equiv=Content-Type content=text/html;charset=GB2312>
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<META http-equiv=Content-Language content=zh-CN><LINK title=default media=screen 
href="手机短信息的编程_files/style.css" type=text/css rel=stylesheet><LINK 
title="RSS 2.0" href="http://liujace.itpub.net/rss/rss20/4284" type=text/xml 
rel=alternate><LINK title="RSS 1.0" 
href="http://liujace.itpub.net/rss/rss10/4284" type=text/xml rel=alternate><LINK 
title="RSS 0.90" href="http://liujace.itpub.net/rss/rss090/4284" type=text/xml 
rel=alternate><LINK title="Atom 0.3" 
href="http://liujace.itpub.net/rss/atom/4284" type=application/atom+xml 
rel=alternate></HEAD>
<BODY>
<DIV id=container>
<DIV id=header>
<DIV class=title></DIV>
<DIV class=subtitle></DIV></DIV>
<DIV id=blog>
<DIV class=blog_head></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/245495"                             dc:identifier="http://liujace.itpub.net/post/4284/245495"                             dc:title="让datagridview中的combobox列在得到焦点的时候展开下拉项"                             trackback:ping="http://blog.itpub.net//trackback.php?id=245495"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/245495">让datagridview中的combobox列在得到焦点的时候展开下拉项</A></DIV>
<DIV class=contenttime>liujace - by - 29 十二月, 2006 13:54</DIV>
<DIV id=blogbody>
<P>
<P>private void dataGridView1_EditingControlShowing(object sender, 
DataGridViewEditingControlShowingEventArgs e)<BR>{<BR>try<BR>{<BR>ComboBox cb = 
(ComboBox)e.Control;<BR>cb.DroppedDown = 
true;<BR>}<BR>catch<BR>{<BR>return;<BR>}<BR>}</P>
<P>private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs 
e)<BR>{<BR>if (e.ColumnIndex == 1)<BR>{<BR>SendKeys.Send("{F2}");<BR>}<BR>}</P>
<P>
<P>目前使用的技巧是:先让combobox列在得到焦点后,转成编辑模式,再调用EditingControlShowing事件,转成combobox控件,设置其droppeddown属性为true</P>
<P>应该可以直接,跳过编辑模式,直接在cellenter事件中处理!!!?</P>&nbsp;<A 
href="http://liujace.itpub.net/post/4284/245495">查看全文</A>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/245495#comments">评论 (0)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/245495">引用 
(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/244768"                             dc:identifier="http://liujace.itpub.net/post/4284/244768"                             dc:title="关于可以编辑datagridviewcomboxcolumn的样例,引用DataGridViewComboEditBoxColumn类"                             trackback:ping="http://blog.itpub.net//trackback.php?id=244768"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/244768">关于可以编辑datagridviewcomboxcolumn的样例,引用DataGridViewComboEditBoxColumn类</A></DIV>
<DIV class=contenttime>liujace - by - 26 十二月, 2006 17:25</DIV>
<DIV id=blogbody>
<P>
<P>private void dataGridView1_CellEndEdit(object sender, 
DataGridViewCellEventArgs e)<BR>{<BR><BR>if (e.ColumnIndex == 
0)<BR>{<BR>//第一列结束编辑<BR>string val = 
dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();<BR>string[] strs = new 
string[10];<BR>for (int i = 0; i &lt; 10; i++)<BR>{<BR>strs[i] = val + "+" + 
i.ToString();<BR>}<BR>DataGridViewComboBoxCell dgcbc; //= new 
DataGridViewComboBoxCell();<BR>//commClass.DataGridViewComboEditBoxCell 
dgcbc;<BR>dgcbc = 
(DataGridViewComboBoxCell)dataGridView1.Rows[e.RowIndex].Cells[1];<BR>//dgcbc = 
(DataGridViewComboEditBoxColumn)dataGridView1.Rows[e.RowIndex].Cells[1];</P>
<P>commClass.DataGridViewComboEditBoxCell dgcbc_ = 
(DataGridViewComboEditBoxCell)dgcbc;</P>
<P>
<P>//dgcbc.DataSource = strs;<BR>//for(int i=0;i&lt;10;i++)<BR>//{<BR>// 
dgcbc.Items.Add(strs[i]);<BR>//}<BR>//dgcbc.AutoComplete = 
true;<BR>//dgcbc.ReadOnly = false;<BR>dgcbc_.Items.Clear();</P>
<P>for (int i = 0; i &lt; 10; 
i++)<BR>{<BR>dgcbc_.Items.Add(strs[i]);<BR>}<BR><BR>dgcbc_.AutoComplete = 
true;<BR>dgcbc_.ReadOnly = false;<BR></P>
<P>}<BR>}</P>
<P>private void Form4_Load(object sender, EventArgs 
e)<BR>{<BR>//dataGridView1.Columns[1].ReadOnly = 
false;<BR>commClass.DataGridViewComboEditBoxColumn dgvcebc = new 
DataGridViewComboEditBoxColumn();<BR>dataGridView1.Columns.Insert(1, 
(DataGridViewComboBoxColumn)dgvcebc);</P>
<P>}</P>
<P>
<P>大家如果有更好办法请回复!谢</P>&nbsp;<A 
href="http://liujace.itpub.net/post/4284/244768">查看全文</A>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/244768#comments">评论 (0)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/244768">引用 
(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/244762"                             dc:identifier="http://liujace.itpub.net/post/4284/244762"                             dc:title="原创-让datagridview中的combox列的每个单元格有不同的数据源"                             trackback:ping="http://blog.itpub.net//trackback.php?id=244762"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/244762">原创-让datagridview中的combox列的每个单元格有不同的数据源</A></DIV>
<DIV class=contenttime>liujace - by - 26 十二月, 2006 17:04</DIV>
<DIV id=blogbody>
<P>
<P>private void dataGridView1_CellEndEdit(object sender, 
DataGridViewCellEventArgs e)<BR>{<BR><BR>if (e.ColumnIndex == 
0)<BR>{<BR>//第一列结束编辑---仅作为测试<BR>string val = 
dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();<BR>string[] strs = new 
string[10];<BR>for (int i = 0; i &lt; 10; i++)<BR>{<BR>strs[i] = val + "+" + 
i.ToString();<BR>}<BR>DataGridViewComboBoxCell dgcbc; //= new 
DataGridViewComboBoxCell();<BR>dgcbc = 
(DataGridViewComboBoxCell)dataGridView1.Rows[e.RowIndex].Cells[1];<BR>//dgcbc.DataSource 
= strs;<BR>for(int 
i=0;i&lt;10;i++)<BR>{<BR>dgcbc.Items.Add(strs[i]);<BR>}<BR>dgcbc.AutoComplete = 
true;<BR>dgcbc.ReadOnly = false;<BR></P>
<P>}<BR>}</P>
<P>private void Form4_Load(object sender, EventArgs 
e)<BR>{<BR>dataGridView1.Columns[1].ReadOnly = false;<BR>}<BR>}</P><BR>
<P></P><BR style="CLEAR: both"></DIV>
<DIV class=contentcomments><A class=commentfoot 
href="http://liujace.itpub.net/post/4284/244762#comments">评论 (0)</A> <A 
class=commentfoot href="http://liujace.itpub.net/trackbacks/4284/244762">引用 
(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/244759"                             dc:identifier="http://liujace.itpub.net/post/4284/244759"                             dc:title="DataGridViewComboEditBoxColumn类,可编辑的ComboBox列[收集]-转"                             trackback:ping="http://blog.itpub.net//trackback.php?id=244759"/></rdf:RDF> -->
<DIV class=contenttitle><A 
href="http://liujace.itpub.net/post/4284/244759">DataGridViewComboEditBoxColumn类,可编辑的ComboBox列[收集]-转</A></DIV>
<DIV class=contenttime>liujace - by - 26 十二月, 2006 17:03</DIV>
<DIV id=blogbody>
<P>
<P>//DataGridViewComboEditBoxColumn类,可编辑的ComboBox列[收集] <BR>public class 
DataGridViewComboEditBoxCell : DataGridViewComboBoxCell<BR>{<BR>public override 
void InitializeEditingControl(int rowIndex, object initialFormattedValue, 
DataGridViewCellStyle 
dataGridViewCellStyle)<BR>{<BR>base.InitializeEditingControl(rowIndex, 
initialFormattedValue, dataGridViewCellStyle);<BR><BR>ComboBox comboBox = 
base.DataGridView.EditingControl as ComboBox;<BR>if (comboBox != 
null)<BR>{<BR>comboBox.DropDownStyle = 

⌨️ 快捷键说明

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