Would fetching the code you want from a source code store provide the result
you desire ?
If so, the benefits of doing it this way... performance, reliability, code
security ... would make it my #1 choice.

----- Original Message -----
From: "Franklin Gray" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 01, 2005 2:16 AM
Subject: [ADVANCED-DOTNET] Code to view code


I would like to write a function in my Examples project that I could call
in all my example code that could show the code from the calling function
and display that code in a new form.


   Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
       Dim d As Date
       d = CType(Me.txtGMT.Text, Date)
       Me.txtLocal.Text = d.ToLocalTime.ToString
       If Me.chkShowCode.Checked = True Then
               ShowCode() ' this is the function I want to write that
shows the lines in this sub.  Possible without hardcoding the display
value?
       End If
   End Sub

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to