在 Visual Studio 安装项目上以编程方式更改文本框值

发布于 2024-09-15 17:46:24 字数 133 浏览 9 评论 0原文

我正在使用 Visual Stual Studio 2008 使用 C# 语言开发安装项目。 我添加了一个带有 4 个文本框的对话框,以允许用户提供一些所需的信息。 有没有办法以编程方式填充其中一个文本框的值,并且用户仅验证它是否正确并在必要时更改它。

I'm developing a Setup project using Visual Stual Studio 2008 using language C#.
I added a Dialog with 4 textboxes to allow the users to provide some needed information.
Is there any way to fill the value of one of the textboxes programatically, and the user only validate is it's correct and changes it if necessary.

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

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

发布评论

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

评论(3

眼前雾蒙蒙 2024-09-22 17:46:30

您可以使用安装程序类进行安装编码(请参阅此链接)。但是,我不知道如何动态设置文本框的值。

You can use an installer class for coding for installation (see this link). However, I don't know how to dynamically set the text box's value.

拍不死你 2024-09-22 17:46:28
textboxname.Text = "whateveryouwant";

这?

textboxname.Text = "whateveryouwant";

This?

所有深爱都是秘密 2024-09-22 17:46:27

打开对话框上的属性页,将 Edit1Value、Edit2Value、Edit3Value 或 Edit4Value 从无更改为有内容。

Open the properties page on the dialog and change Edit1Value, Edit2Value, Edit3Value, or Edit4Value from nothing to something.

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