Cmd.Layout = PushbuttonField.LAYOUT_ICON_ONLY; Cmd.ProportionalIcon = true; Cmd.BorderWidth = 0; Cmd.Visibility = BaseField.VISIBLE;So, after the icon got updated, I started removing lines of code one at a time to see which one was required and after I had commented all of them out, the icon continued to get updated. What I finally did was to translate these lines of code to VFP like so:
loCmd.Layout = 2 loCmd.ProportionalIcon = .T. loCmd.BorderWidth = 0 loCmd.Visibility = 0And my VFP code started working.