List Info

Thread: putting current executing code in a textbox




putting current executing code in a textbox
user name
2006-07-20 19:50:39
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" <andrewCOGNEX.COM>DISCUSS.DEVELOP.COM
received on 07/20/2006 09:10 AM

07/20/2006 09:10 AM



"Eames, Andrew" <andrewCOGNEX.COM>DISCUSS.DEVELOP.COM

Please respond to Discussion forum for developers using
Windows Forms to
build apps              and controls <DOTNET-WINFORMSDISCUSS.DEVELOP.COM>
Sent by Discussion forum for developers using Windows Forms
to build apps
           and controls <DOTNET-WINFORMSDISCUSS.DEVELOP.COM>



        To:     DOTNET-WINFORMSDISCUSS.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 [mailtoOTNET-WI
NFORMSDISCUSS.DEVELOP.COM] On Behalf Of
Franklin Gray
Sent: Wednesday, July 19, 2006 6:01 PM
To: DOTNET-WINFORMSDISCUSS.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?
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )