在 Visual Studio 安装项目上以编程方式更改文本框值
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用安装程序类进行安装编码(请参阅此链接)。但是,我不知道如何动态设置文本框的值。
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.
这?
This?
打开对话框上的属性页,将 Edit1Value、Edit2Value、Edit3Value 或 Edit4Value 从无更改为有内容。
Open the properties page on the dialog and change Edit1Value, Edit2Value, Edit3Value, or Edit4Value from nothing to something.