### Set and Get Visible RowCount

To set or get the ComboBox visible rowcount, make use of an API method.
use JavaObject.
Reference: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/Control/ComboBox.html
`Sub SetVisibleRowCount(cb As ComboBox, cnt As Int)
Dim jo As JavaObject = cb
jo.RunMethod("setVisibleRowCount", Array(cnt))
End Sub`
`Sub GetVisibleRowCount(cb As ComboBox) As Int
Dim jo As JavaObject = cb
Return jo.RunMethod("getVisibleRowCount", Null)
End Sub`
Example Usage
`Sub Process_Globals
...
Private ComboBox1 As ComboBox
Private btnSetVisibleRowCount As Button
Private edVisibleRowCount As TextField
Private lblVisibleRowcount As Label
End Sub`
'Set the visible rowcount of the combobox
`Sub btnSetVisibleRowCount_Action
SetVisibleRowCount(ComboBox1, edVisibleRowCount.Text)
lblVisibleRowcount.Text = "Visible RowCount is " & GetVisibleRowCount(ComboBox1)
End Sub`

Changed: , Category: ComboBox, File: T6C175M1271.htm, ID: 1271