社区
VB基础类
帖子详情
richtextbox problem!
reinly
2001-08-28 12:40:49
怎样编写事件使richtextbox改变部分字体的属性
...全文
108
8
打赏
收藏
richtextbox problem!
怎样编写事件使richtextbox改变部分字体的属性
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lou_df
2001-08-29
打赏
举报
回复
通过字体和颜色设置后取得设置值,再通过上面的方法处理不行吗?
_liang
2001-08-29
打赏
举报
回复
gz
foolishtiger
2001-08-28
打赏
举报
回复
Private Sub Command1_Click()
With Me.RichTextBox1
.SelStart = 0
.SelLength = Len(.Text) / 2
.SelColor = vbRed
End With
End Sub
可以正确执行的啊!?请详述你试时具体情况。
reinly
2001-08-28
打赏
举报
回复
我的意思是可以通过字体和颜色设置对话框来改变richtextbox字体的属性,而不是单存的给他设置一个字体常量
sunbf
2001-08-28
打赏
举报
回复
lou_df你的方法不行,我试过
我也苦恼这个问题
outer2000
2001-08-28
打赏
举报
回复
gz
lou_df
2001-08-28
打赏
举报
回复
在指定的事件下加上
richtextbox.selstart=开始改变的位置
richtextbox.sellength=改变范围
richtextbox.selcolor=字体颜色
dave75
2001-08-28
打赏
举报
回复
可以先用 find方法定位你要改变的内容.其他的同意楼上的意见.
VB编程资源大全(英文源码 其它)
prngmit.zip This Random Number Generator is for everybody who is tired of using the "Randomize" and "Rnd" in VB and VBScript and having to watch the SAME "Random" numbers appear (The
problem
is ...
T
RichTextBox
–通用的
RichTextBox
,可以显示动画图像等
摘要 (Summary) 在
RichTextBox
中显示图像是常见的要求,而可用的解决方案有限。 通过剪贴板粘贴或嵌入RTF内容仅支持静态图像。 本文介绍如何将Windows控件对象插入
RichTextBox
并使用它们托管图像。 这是一个简单但...
Delete text in a
RichTextBox
After setting
RichTextBox
s ReadOnly property to true, I can reproduce out your
problem
with the code snippet below: this.
richTextBox
1.SelectionStart = 0; this.
richTextBox
1.SelectionLength =4; this.ri
TextBox和
RichTextBox
简单操作
// TextBox to red to indicate a
problem
. We use the tag value // of the control to indicate if the control contains valid // information. if (tb.Text.Length == 0) { tb.BackColor ...
Binding and styling text to a
RichTextBox
in WPF
http://www.codeproject.com/Articles/137209/Binding-and-styling-text-to-a-
RichTextBox
-in-WPF...The
RichTextBox
in WPF is a great tool for dealing with text that needs to be styled (such as syntax highli
VB基础类
7,763
社区成员
197,605
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章