Hide the control box on the form with iLogic

Hide the control box on the form with iLogic

shrey9GP3F
Enthusiast Enthusiast
847 Views
4 Replies
Message 1 of 5

Hide the control box on the form with iLogic

shrey9GP3F
Enthusiast
Enthusiast

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.

shrey9GP3F_0-1617719138048.png

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
0 Likes
Accepted solutions (1)
848 Views
4 Replies
Replies (4)
Message 2 of 5

bhavik4244
Collaborator
Collaborator

@shrey9GP3F 

 

I suspect this won't be possible to do. 


Bhavik Suthar
0 Likes
Message 3 of 5

WCrihfield
Mentor
Mentor
Accepted solution

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

EESignature

(Not an Autodesk Employee)

Message 4 of 5

shrey9GP3F
Enthusiast
Enthusiast

Thank you for the reply.

 

Where can I find the detailed documentation for creating and implementing the Windows form?

 

Thank you.

0 Likes
Message 5 of 5

WCrihfield
Mentor
Mentor

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

EESignature

(Not an Autodesk Employee)

0 Likes