- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, community,
I am trying to make a list box visibility dynamic, which is controlled by the selection of the previously selected fields. I can grey out the list box by using a boolean parameter. But I want to remove the visibility of the list box entirely. How can I accomplish such a task with iLogic?
Thank you.
enable_subcategory = False
Select Case Cabinet_type
Case "Corner base"
enable_subcategory = True
MultiValue.SetList("Cabinet_Subcategory", "none", "Sink base")
Select Case Cabinet_Subcategory
Case "none"
MultiValue.SetList("unit_width", "33 in", "36 in")
End Select
End Select
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @shrey9GP3F. That won't be possible using an iLogic Form and iLogic rule(s).
You might accomplish something like that with a VBA UserForm when created within the VBA Editor, but it will be quite a bit more complicated than the iLogic Form route. It has a visual design set of tools to work with, but requires a special 'form module' to accompany it (where you specify the specifics of its design and contents), besides the regular module for the regular part of the code.
Another thing you could try, if the form's design is fairly simple, is create your own Windows Form within the same rule that you want to interact with its outcome. It's also quite a bit more complicated than the iLogic Form route, but it might result in the behavior you are seeking.
Here is a link to one of my contribution posts, in which I show (with an example) how create, show, and react to, a Windows Form, all within one iLogic rule.
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS)
.
If you want and have time, I would appreciate your Vote(s) for My IDEAS
or you can Explore My CONTRIBUTIONS
Wesley Crihfield
(Not an Autodesk Employee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you for the reply.
Where can I find the detailed documentation for creating and implementing the Windows form?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here are two links to Microsoft's top two pages on the subject matter.
System.Windows.Forms Namespace (lots of things you can use/create within Forms)
Form Class (about the Form object itself and the Properties, Methods, and Events defined within it)
There is a TON of information (and links to related information) within those two pages. Remember to click the little drop-down list, near the top right of the webpage, and change C# to VB, to change examples and related content to VB.NET versions (iLogic uses VB.NET).
Other than that, I would recommend that you open an internet browser search page, and type in "vb.net Windows Form" (or similar queries), to find tons more useful information, examples, forum posts, and Q&A sites on the subject.
Wesley Crihfield
(Not an Autodesk Employee)