Skip to content

event.Control as foo in ironpython #611

@faststare

Description

@faststare

Environment

  • Pythonnet version: latest
  • Python version: 3.6.4
  • Operating System: WinOS

Details

I like to have an autocomplete textbox in datagridview with editingshowing event handler. in c# event argument in function event.Control can be morph to a textbox with that event. as e.Control as Textbox but in ironpython I received a invalid because I use as keyword in winform expression and not in import expression.
how can I achieve the same functionality of this?
TODO

  • What commands did you run?

python dgv.py


-   If there was a crash, please include the traceback here.

file dgv.py line 70
autotext = e.Control as Textbox
SystaxError: unexpected token 'as'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions