Clipboard.SetText Text1.Text 这个为复制文本框1的内容。
那么如果我想多复制要怎么实现呢?
一行代码复制text1,text2,text3,text4 等等等等。
然后按Ctrl+v,会按竖直的方式排开 例如下 :text1
text2
text3
text4
....
textn
那么如果我想多复制要怎么实现呢?
一行代码复制text1,text2,text3,text4 等等等等。
然后按Ctrl+v,会按竖直的方式排开 例如下 :text1
text2
text3
text4
....
textn
解决方案 »
- 【扫盲散分贴】:所有微软的ActiveX控件属性页中的设置都可以通过代码来实现。
- VB.NET调用非托管DLL组件问题(传递给系统调用的数据区域太小)
- 关于临时表结果集检索的问题——急!
- 菜鸟问题:如何将“2004-8-12”类型的字符串 转换为 “2004.08”
- 用richtextbox打开WORD文档是乱码??
- 请问怎样用vb做一个类似网络蚂蚁软件一样的多线程下载软件!
- 求助!求助!
- 寻求xp控件!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- SOS !!! VB5.0里面为什么DataReport没有的DataSource的选择项呢?
- if语句前面加个#?
- 【图片】马上射了!!有点黄,慎入~~~~~~~~~~~~~~
- VB:如何实现鼠标停留在TextBox时显示图片,移开鼠标图片消失,如同ToolTipText一样。
strText=""
for i=1 to n
strText=strText & text(i).text
if i<>n then
strText=strText & vbcrlf
end if
next
strText=""
for i=1 to n
strText=strText & text(i).text
if i <>n then
strText=strText & vbcrlf
end if
next
Clipboard.SetText strText
strText = ""
For i = 0 To Text1.Count - 1
strText = strText & Text1(i).Text & Chr(13) & Chr(10)
Next
Clipboard.SetText strText
Text2.SetFocus
SendKeys " ^v "
End Sub
strText = ""
For i = 0 To Text1.Count - 1
strText = strText & Text1(i).Text & Chr(13) & Chr(10)
Next
Clipboard.SetText strText
Text2.SetFocus
SendKeys " ^v "
End Sub