在richtextbox vb.net中提供帮助 [英] help in richtextbox vb.net

查看:120
本文介绍了在richtextbox vb.net中提供帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

For j As Integer = 0 To RichTextBox1.Lines.Length - 1

           Dim lines() As String = Me.RichTextBox1.Lines
           RichTextBox1.SelectedText = lines(j).IndexOf("http")
           RichTextBox1.SelectionLength = (30)

           RichTextBox2.Text = RichTextBox1.SelectedText.ToString



       Next





i想要复制所有在richtextbox1中包含单词http,我遵循此代码,但它显示不同的呃ror。

任何人都可以在这段代码中建议其他代码或帮助:)



i want to copy all lines in richtextbox1 contain word "http", i follow this code but it showing different error.
can anyone suggest other code or help in this code :)

推荐答案

检查这里有很多查找文本的方法richtextbox



http://msdn.microsoft.com/en-us/library/3134f2f7%28v=vs.71%29.aspx [ ^ ]
Check here there are many methods of find a text in richtextbox

http://msdn.microsoft.com/en-us/library/3134f2f7%28v=vs.71%29.aspx[^]


这篇关于在richtextbox vb.net中提供帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆