ha ha ha. There is a methodinfo object that has the
information about the
current executing method....I just don't know how to use it
to get the
code.
Message from "Eames, Andrew" <andrew COGNEX.COM> DISCUSS.DEVELOP.COM
received on 07/20/2006 09:10 AM
07/20/2006 09:10 AM
"Eames, Andrew" <andrew COGNEX.COM> DISCUSS.DEVELOP.COM
Please respond to Discussion forum for developers using
Windows Forms to
build apps and controls <DOTNET-WINFORMS DISCUSS.DEVELOP.COM>
Sent by Discussion forum for developers using Windows Forms
to build apps
and controls <DOTNET-WINFORMS DISCUSS.DEVELOP.COM>
To: DOTNET-WINFORMS DISCUSS.DEVELOP.COM
cc:
Subject: Re: [DOTNET-WINFORMS] putting
current executing code in a textbox
Er.... isn't the currently executing code the code that is
displaying
the currently executing code (which is
an interesting enough problem
in itself actually)
Andrew
-----Original Message-----
From: Discussion forum for developers using Windows Forms to
build apps
and controls [mailto OTNET-WI
NFORMS DISCUSS.DEVELOP.COM] On Behalf Of
Franklin Gray
Sent: Wednesday, July 19, 2006 6:01 PM
To: DOTNET-WINFORMS DISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WINFORMS] putting current executing
code in a
textbox
Repost because I don't think the first time it went
through.
I would like to show the code of the current executing sub
in a textbox.
I
believe this can be done with reflection but I can't figure
out how.
Any
code examples of this anywhere?
|