Thursday, September 6, 2007

Reflection 2

5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.

Today we made a demo form, with buttons and labels. One of the code segments we used was :
Private Sub BtnMessage_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnMessage.Click
Me.LblMessage.Text = "In Diabolus nos Fides"

which coded for the button BtnMessage. When clicked, this code would cause the button to change the text in the label LblMessage from black to "In Diabolus nos Fides". To make this code, I double clicked the button to start the code for the button, then added the Me.LblMessage.Text="In Diabolus nos Fides" segment to code the behavior which changed the label text.

No comments: