Notifications
Clear all

[Closed] Is there anything like dropDownList in .NET?

Hello!

I’m just wondering if there’s anything like dropDownList in DotNet?

And what about this one?
dotNetObject:System.Windows.Forms.ToolStripDropDownMenu
Is it similar to dropDownList?

Thank you!

3 Replies

yes, use ‘System.Windows.Forms.Combobox’;


rollout roll_test "test" width:400 height:200 (
	dotNetControl dno_ddl_test "System.Windows.Forms.Combobox" width:350 height:150
	on roll_test open do (
		dno_ddl_test.Items.AddRange #("Hello","World","of","MaxSript")
	)
)

The .dropDownStyle property on that control determines whether it displays as a dropdownlist (DropDown*), or a combobox (Simple).

Thank you!

Be aware though to use the combobox, as Richard described it above, within a max rollout! Using the combobox within a dotNetObject “MaxCustomControls.MaxForm” will lead to garbage collections errors.