Function Access
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.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Andrzej WegierskiRank #1,729 · 877 reputationPosted Jun 18, 2004, 12:34 AM EDT
axb92442 reputationPosted Jun 21, 2004, 6:29 AM EDT