axb924

axb924

  • NA
  • 30
  • 0

Function Access

Jun 17 2004 1:37 PM
Say I dynamically create a lable in a function and add it to the form. Now I want to be able to access that label and alter it's location property from another function. C# eventhandlers send an reference to the object, basically I need to do something like that. ex. eventhandler this.label += new eventhandler(this.some_function) private void some_function(object sender, EventArgs) { //code for eventhandler } But I need a this.mousemove eventhandler, which sends a reference to the form, so I can't use it to alter my label. Can someone please help. Basically I need to access a dynamically created object from another function.

Answers (2)