无法从选定的选项卡中获取RichTextbox
我的程序快要完成了,这是一个多标签的记事本,我无法上班保存“ Active”选项卡的RichTextbox。
First Tab具有一个名为“ BlackText”的RichTextbox,但其他Tab是通过单击“新的”而动态创建的。 ”。
new tab + new tab + new rtb(picture)
我在Google中尝试了许多答案。 我会授予您为我修复的选项([[下载there.rar] [3]),然后将其退还给我,,因为我白天和黑夜都在涉足一个星期随着挫败感的增加,这将不胜感激。
谢谢, 链接
My program is almost finished, which is a multi-tabbed Notepad, and i can't get to work saving the RichTextBox of the active tab.
First tab has a RichTextBox called "BLACKTEXT" but the others are created dynamically by clicking "New".
When hitting 'Save', the RichTextBox of the SelectedTab has to be saved.
I tried many answers in Google. I'll grant you the option to fix it for me ([download here.rar][3]) and return it back to me, because i've been dabbling around day and night for a week with increasing frustration and that would be greatly appreciated.
Thanks,
linkings
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此代码将从当前选择的
tabPage
tabcontrol1
:This code will get the one and only
RichTextBox
control from the currently selectedTabPage
ofTabControl1
:我无法为您修理,但也许我可以帮忙。您要保存RichTextbox控件或RichTextbox控件的内容吗?如果您要保存的是RichTtextbox控件的内容,请使用RichTextbox的.rtf属性并将其写入要创建的文件:
I can't fix it for you but maybe I could help. Do you want to save the richtextbox control or the content of the richtextbox control? If it's the content of richttextbox control that you want to save, use the .rtf property of the RichTextBox and write it on the file to be created: