Combobox : Editable

I hva the following code to a combobox that can be entering data

    Dim x_City As ComboBox = New ComboBox(True)
    x_City.Move(20, 108, 320, 26)
    Dim All_City As Array Of String = ["London","Tokyo","Paris"]
    For Each Each_City As String In All_City
        x_City.AddItem(Each_City)
    Next
    x_City.Text = "Type a city…"
    w.AddSubview(x_City)

how to I do the same using Control block ?

Class cboCity Inherits ComboBox
    Handle SelectionChanged()
        print("cboCity - Picked: " + Me.Text)
    End Handle
    Public Function SetCombo_City() as String
        Dim All_City As Array Of String = ["London","Tokyo","Paris"]
        For Each Each_City As String In All_City
            Me.AddItem(Each_City)
        Next
    END Function
    Public Function SetCity() as String
        me.SelectedIndex = 0
    END Function
End Class

Public Window Combobox_03_Layout
    Control cboCity x_cboCity
        Frame = (20, 108, 320, 26)
        ' Handle SelectionChanged()
        '     print("cboCity - Picked: " + Me.Text)
        ' End Handle
    end Control
End Window

If there’s no way to do this in the layout editor yet then you can’t. Bug!

understood..by th way , what is ti suppose to look like?? the layout editor when I click on the VSCode??

I found out the problem. the layout editor show the overlapping control if your don’t have the “Frame = (200, 1300, 400, 200)”. the minute I put in the frame, it show up normal without the overlapping

PUBLIC Window TextField_03_Layout
    ' Title = "TextField_04"
    ' Frame = (200, 1300, 400, 200)
    Control TextField x_Name
        Frame = (20, 40, 360, 24)
        Placeholder = "Enter your name"
    end Control
    Control TextField x_Password
        Frame = (20, 72, 360, 24)
        Placeholder = "Enter your password"
    end Control
    Control Button x_btn_PressMe
        Caption = "Press Me"
        Frame = (20, 160, 360, 24)
    end Control
End Window