Using Xojo 2025.2.1
How to get the border at the bottom if I add a DesktopTextField programmatically?
DesktopTextField added via GUI with drag’n’drop:

DesktopTextField added via code:

Dim tfTextField As New DesktopTextField
tfTextField.Password = isPassword
tfTextField.Width = widtht
fTextField.Height = 22
Me.AddControl(tfTextField)
tfTextField.Left = 184
tfTextField.Top = top
tfTextField.Name = name
tfTextField.AllowAutoDeactivate = True
tfTextField.AllowFocusRing = True
tfTextField.HasBorder = True
tfTextField.LockLeft = TruetfTextField.LockTop = True