SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Simple question accessing widgets

Last post 02-03-2013 8:50 PM by silmaril8n. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-03-2013 6:55 PM

    Simple question accessing widgets

    Simply put, what's the appropriate way to access a widget in a WinForm, with IronPython, in SharpDevelop?

    I realize I can access them directly via the generated code inside "InitializeComponent(self)", meaning if I wanted to change a TextBox from a Button click I could just use "self._txtboxname.Text = 'Some text here'", but is there a more appropriate or recommended way? Get/Set functions?

    I should clarify that I'm not modifying code inside InitializeComponent(), but merely adding code to an Click event.

    Filed under:
  • 02-03-2013 7:04 PM In reply to

    Re: Simple question accessing widgets

    Using self._txtboxname seems fine to me. You are writing code inside the form so you typically just use the private member variables even in a language such as C#.

  • 02-03-2013 8:50 PM In reply to

    Re: Simple question accessing widgets

    Thanks, Matt. Much appreciated.

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.