Word 2010 中用于修改文本框的复选框 - 第二部分

发布于 2025-01-04 17:38:47 字数 205 浏览 2 评论 0原文

好吧,也许我没有正确地问我的上一个问题 - 它是关于当复选框未激活时隐藏文本框...抱歉问题的“表述错误”。

当复选框不活动而不仅仅是文本框时,我想隐藏特定文本框(和文本框)中的文本。

Ok so maybe I didn't ask my previous question correctly - it was about hiding a textbox when the checkbox was not acitve... Sorry for the 'misformulating' of the question.

I would like to hide the text in the soecific textbox (and the textbox) when the checkbox is not active and not just the textbox.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风筝有风,海豚有海 2025-01-11 17:38:47

您可以将以下一些想法融入到我对上一个问题的回答中:

TextBox1.ForeColor = RGB(255, 255, 255) ' "hide" the text by making it white
TextBox1.ForeColor = RGB(0, 0, 0) ' "unhide" the text by making it black

TextBox1.Text = "" ' remove the text entirely

TextBox1.SpecialEffect = fmSpecialEffectFlat ' "hide" the empty textbox 
' by making it blend in with the page background

如果您想要不同的答案,那么您会必须澄清你的问题。

编辑您正在寻找不存在的东西。您想要“将文本框的‘内容’设为‘隐藏文本’,使其不可见(因此不会打印)”。不存在“隐藏文本”这样的东西,但在上面的代码和我对你上一个问题的回答中,你有一些好的解决方法的想法可以满足您的要求:美白或删除文本,以及删除文本框上的特殊效果。这些东西将使使文本框(和/或其包含的文本)不可见,从而无法打印。我已经测试过了。

需要证明吗?我已经打印成 PDF 格式只是为了向您展示。以下是结果快照。
我不确定您还期待什么!

在此处输入图像描述 取消选中该复选框,文本框将变为不可见: 在此处输入图像描述

Here are a few ideas that you can work into my answer to your previous question:

TextBox1.ForeColor = RGB(255, 255, 255) ' "hide" the text by making it white
TextBox1.ForeColor = RGB(0, 0, 0) ' "unhide" the text by making it black

TextBox1.Text = "" ' remove the text entirely

TextBox1.SpecialEffect = fmSpecialEffectFlat ' "hide" the empty textbox 
' by making it blend in with the page background

If you want different answers, then you will have to clarify your question.

EDIT You are looking for something that does not exist. You want to "make the 'content' of the textbox 'hidden text' so that it's not visible (and therefore will not print)". There is no such thing as "hidden text", but in the code above and in my answer to your previous question, you got a couple of ideas for good workarounds that do what you want: whitening or removing the text, and removing special effects on the textbox. These things will make the textbox (and/or the text it contains) not visible such that it does not print. I have tested this.

Need proof? I've printed to a to PDF just to show you. Below are snapshots of the results.
I'm not sure what more you expect!

enter image description here Uncheck the checkbox and the textbox becomes invisible: enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文