Notifications
Clear all

[Closed] Get DotNet Control Name

I’m trying to get the NAME of the dotNetControl, but currently, it returns the PROPERTY of the control instead.

   Using this before:
rollout test_a "test_a"
       (
       	button btn_test "test"
       	
       	on test_a [color=LightBlue]open do print [/color]btn_test.name
       )
       createDialog test_a
   It prints out what I want:
"btn_test"
   But by using the dotNet control:
rollout test_b "test_b"
       (
       	dotNetControl btn_test "Button"
       	
       	on test_b [color=LightBlue]open do print [/color]btn_test.name
       )
       createDialog test_b
   I get this instead:
"ControlAxSourcingSite"
   Is there a way to query the NAME of the control and not PROPERTY?
   
   Thanks,
   Jeff
2 Replies

Here is a similar thread where you will find an answer.

Awesome, thanks PolyTools3D!
I used the search term “dotnet name”… I should have used “dotnercontrol name” : )