Skip to content

WinFroms designer problem with control named after keyword #566

@cpyrgas

Description

@cpyrgas

Attached WinForm has a control named "Currency". When opening the prg file in the code editor, it changes the line

PRIVATE Currency AS System.Windows.Forms.Label

to

PRIVATE CURRENCY AS System.Windows.Forms.Label

so next time it is not possible to open the form in the designer. Prefixing the name with @@ as in

PRIVATE @@Currency AS System.Windows.Forms.Label

did not make the trick, either

WindowsFormsApplication17.zip

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions