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