c# setup project get radio buttons value

后端 未结 1 1769
一向
一向 2021-01-24 16:02

I\'ve started to create installer for my application using Setup Project in Visual Studio, I\'ve made User Interface with two radio buttons.

There it is what i\'m talkin

相关标签:
1条回答
  • 2021-01-24 16:21

    Assuming that getting them in C# means that you have a custom action installer class that you wish to pass the values to:

    DOMAINLOCALVALUE appears to be the name of the property associated with the radiobutton. In the properties window of the custom action you want to pass the value into, in the CustomActionData field, you put something like /DLV=[DOMAINLOCALVALUE] and then in your installer class you get the value with this.Context.Parameters["DLV"]

    That's the basics of what's described here:

    http://www.c-sharpcorner.com/article/customize-user-interfaces-and-pass-user-input-to-installer-c/

    If you want to pass it to a C# executeable or something else then you'll need to be more precise about exactly what "get access to values of these radiobuttons in c#" means.

    0 讨论(0)
提交回复
热议问题