![]() ![]() | ||
You've submitted your project to the user testing stage and feel smug. What could go wrong? Suddenly the phone rings—it seems they don't like the title in the program's title bar: "Form1". How can you change it?
Setting the text in the title bar of a form couldn't be easier. At design time, you just change the form's Text (formerly Caption) property. You also can set the Text property at run time in code like this (technically, one should use Me.Text in this case, but the current form is the default in this code):
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Text = "Welcome to my Application"
End Sub
![]() ![]() | ||